Compiler heuristics
Igor Stasenko
siguctua at gmail.com
Tue Dec 25 03:14:12 UTC 2007
> and now method bodies:
>
> method1
> object = 0 ifTrue: [ do something] ifFalse: [ do something else ]
>
> method2
> object ~= 0 ifTrue: [ do something] ifFalse: [ do something else ]
>
oops, i mistaken, obviously method bodies should use self:
method1
self = 0 ifTrue: [ do something] ifFalse: [ do something else ]
method2
self ~= 0 ifTrue: [ do something] ifFalse: [ do something else ]
--
Best regards,
Igor Stasenko AKA sig.
More information about the Exupery
mailing list