[Newbies] About true

Mathieu mathk.sue at gmail.com
Thu Aug 3 18:54:43 UTC 2006


Hi,

I was playing with true:

Supposes you inspect 'True basicNew'. It return a new instance of True
but the following don't work:

True basicNew ifTrue:[true]

Strange?

I have try to debug it and it fail on basicNew ??

I have inspect a CompiledMethod with this code and I saw:

21 <41> pushLit: True
22 <D0> send: basicNew
23 <98> jumpFalse: 25
24 <79> return: true
25 <78> returnSelf

That seems to be correct but at run time it don't do this ??
How come?

Thx

Math


More information about the Beginners mailing list