[BUG] Scanner class>>isLiteralSymbol: mistakenly returns true for #'--'

Yanni Chiu yanni at rogers.com
Fri Mar 5 20:25:03 UTC 2004


#-- yields a syntax error, but #'--' is okay.
However, "'--' asSymbol printString" yields #--,
instead of #'--'.


Test1 (fails now, but should pass):

    Compiler evaluate: '--' asSymbol printString


Test2 (passes now, and should continue to pass):

    Compiler evaluate: '-' asSymbol printString



More information about the Squeak-dev mailing list