[bug] Compiler bug or feature?

Wolfgang Helbig helbig at Lehre.BA-Stuttgart.DE
Mon May 8 17:03:25 UTC 2006

>Am 08.05.2006 um 17:28 schrieb Michael Rueger:
>> Hi all,
>> did anybody ever try something like
>> SmallInteger>>test: self
>> 	^self
>> 5 test: 7 -> 7
>> same for nil etc.

This seems to be a bug.

At least as specified in the Blue Book for Smalltalk-80 the above code should 
not be accepted.

And isn't accepted by:
Smalltalk-80 (snapshot from 31 May 1983 10:37:52 am, sources:  1 April 1983)
Squeak 3.8
Squeak 1.18
and an image called xmsmall, that Dan kindly gave me to get at ST-80 fonts.

All of them print:

test:  Name is already defined ->self
when you type the above code in the system browser and try to save it.


Weniger, aber besser.

More information about the Squeak-dev mailing list