Fun with Symbol

nicolas cellier ncellier at ifrance.com
Wed May 23 00:21:06 UTC 2007


That's what mature means I guess.

The last is syntactically correct, and correctly parsed by Squeak.
However Squeak result is quite surprising, debug it to believe it.

Nicolas



PS: forgot this one:
	Compiler evaluate: '#$'.
Not to confuse:
	Compiler evaluate: '# $'.
And:
	Compiler evaluate: '#$ '.

Boris Popov a écrit :
> If anyone cares, here's VisualWorks' treatment,
> 
> Compiler evaluate: '#++'.
> #++
> 
> Compiler evaluate: '##'.
> #word, binary, keyword, (, or [ expected ->#
> 
> Compiler evaluate: '#'.
> #word, binary, keyword, (, or [ expected ->
> 
> Compiler evaluate: '# "please" # "print" # "me"'.
> # "please" word, binary, keyword, (, or [ expected -># "print" # "me"
> 
> Compiler evaluate: '##()'.
> #word, binary, keyword, (, or [ expected ->#()
> 
> Compiler evaluate: '##)'.
> #word, binary, keyword, (, or [ expected ->#)
> 
> Compiler evaluate: '##('.
> #word, binary, keyword, (, or [ expected ->#(
> 
> Compiler evaluate: '##(##)'.
> #word, binary, keyword, (, or [ expected ->#(##)
> 
> Compiler evaluate: '#1'.
> #word, binary, keyword, (, or [ expected ->1
> 
> Compiler evaluate: '#-1'.
> #-Nothing more expected ->1
> 
> Compiler evaluate: '#--1'.
> Unhandled exception: Message not understood: #-
> 
> Cheers!
> 
> -Boris
> 




More information about the Squeak-dev mailing list