Mantis - Squeak
Viewing Issue Advanced Details
180 Compiler minor always 09-23-04 22:29 07-28-05 08:29
MarcusDenker  
 
normal  
closed  
open  
none    
none  
0000180: Scanner class>>isLiteralSymbol: mistakenly returns true for #'--'
#-- 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
 Scanner class-isLiteralSymbol.st.gz [^] (605 bytes) 02-24-05 22:31

Notes
(0001172)
ohshima   
02-24-05 22:32   
I'm not sure the effect of the proposed patch fully, but I don't see any reason to treat the vartical bar and colon character differently from other binary symbols, as effectively there is only one sender in the image (Symbol>storeOn:).

-- Yoshiki
(0002003)
MarcusDenker   
07-28-05 08:27   
fixed in 3.9