Compiler bug

Stefan Matthias Aust sma at kiel.netsurf.de
Thu Apr 9 19:54:12 UTC 1998


>    ';' asSymbol == #';'
>in Dolphin gives 'true' but in Squeak, it is ' false'.
>Who's right?

Dolphin is right of course :-) Squeak cannot handle the #';' notation.
Try this

#; class ---> Symbol "correct"
#';' class ---> String "oops"
and just to make sure
(#';') class ---> String "still wrong"

But I think, you can correct this misbehavior by changing the method
Scanner>>xLitQuote as shown in the attached change file. If tokentype is a
string, convert the token to a symbol. That's all. Isn't Smalltalk
wonderful? BTW, Squeak still silently ignores illegal constructs like #4711
and contains some strange ## and ### notation.

bye
Content-Type: application/octet-stream; name="Scanner-xLitQuote.st"
Content-Disposition: attachment; filename="Scanner-xLitQuote.st"

Attachment converted: Cog:Scanner-xLitQuote.st (????/----) (0000CD0C)

--
Stefan Matthias Aust  //  Are you ready to discover the twilight zone?





More information about the Squeak-dev mailing list