[Pharo-project] Halt

Stéphane Ducasse stephane.ducasse at inria.fr
Mon Aug 29 04:56:21 EDT 2011


> Currently you can't send #ifTrue: to any object.
> 
> I did not get this interesting point.
> I know that ifTrue: ... messages are optimized with special bytecodes.
> But, implementing Halt class>>ifTrue: would work.
> What am I missing?
> 
> Thanks,

Luc indeed ifTrue: is handled specially by the compiler.
The problem is that it would have to get changed if we wanted to have something else.


BTW I found strange that the following does not refer to 'plop' in a way or another.

foo 
	self ifTrue: ['plop']


13 <70> self
14 <87> pop
15 <78> returnSelf






More information about the Pharo-dev mailing list