[squeak-dev] funky Compiler implementation

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu Feb 25 02:12:28 UTC 2010


Try:

Compiler evaluate: '0r0 + 1'.

Then:

Compiler evaluate: '1 + 0r0'.

and explain the difference...

...

It lies in initialization, the first token being scanned before the
encoder is set properly...
No encoder, no class information easily accessible, no
SyntaxErrorNotification issued...
So the first returns nil...

Nicolas



More information about the Squeak-dev mailing list