debug it in the debugger bring a halt.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

debug it in the debugger bring a halt.

Stéphane Ducasse
compileSelectionFor: anObject in: evalContext
        | methodNode method failed |
         failed :=  false.
        methodNode :=  
                [
                        Compiler new
                        compileNoPattern: self selectionAsStream
                        in: anObject class
                        context: evalContext
                        notifying: self
                        ifFail: [ failed :=  true ] ]
                on: OutOfScopeNotification
                do: [:ex | ex resume: true].
        failed ifTrue: [ ^ nil ].
        self halt: 'old generate: use'.
        method := methodNode generate: #(0 0 0 0).
        ^method copyWithTempsFromMethodNode: methodNode

clearly a bad use of halt instead of deprecated.

Fixed in 3007

Stef



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project