Login  Register

Re: Issue 3298 in pharo: [Kernel Dependencies] Object >> #cannotReturn

Posted by pharo on Mar 12, 2011; 12:54pm
URL: https://forum.world.st/Issue-3298-in-pharo-Kernel-Dependencies-Object-cannotReturn-tp3059128p3350184.html

Updates:
        Status: Closed
        Labels: Unresolvable

Comment #4 on issue 3298 by [hidden email]: [Kernel Dependencies]  
Object >> #cannotReturn
http://code.google.com/p/pharo/issues/detail?id=3298

The solution is probably in the kernel to have

cannotReturn: result

        closureOrNil notNil ifTrue:
                [^self cannotReturn: result to: self home sender].

then when toolset is loaded to have

cannotReturn: result

        closureOrNil notNil ifTrue:
                [^self cannotReturn: result to: self home sender].
        ToolSet
                debugContext: thisContext
                label: 'computation has been terminated'
                contents: nil