Compiler bug
Maloney
johnm at wdi.disney.com
Thu Apr 9 18:01:51 UTC 1998
In Squeak, #; creates a symbol and #';' creates the string ';', so
';' asSymbol == #';'
returns false, since the symbol and the string are not the same object.
-- John
>I though I had found a bug in Smalltalk Dolphin (sent a message to their
>support group) but I think there is a problem with Squeak. The
>following piece of code:
> ';' asSymbol == #;
>produces 'true' in Squeak and #; in Dolphin. The bug in Dolphin is not
>answering #; but the compiler should flag this code with an error.
>According to the Blue Book, #; is not a valid symbol constant. Another
>example. Now, according to ANSI, #';' is a valid string constant, so
>the code:
> ';' asSymbol == #';'
>in Dolphin gives 'true' but in Squeak, it is ' false'.
>Who's right?
More information about the Squeak-dev
mailing list
|