[FYI] Java vs Squeak/Smalltalk, with <CSOTD> included!
Boris_Gaertner at msg.de
Boris_Gaertner at msg.de
Wed Jan 16 12:31:51 UTC 2002
Goran Hultgren wrote:
>>Before you do-it, what do you think it will say in the Transcript?"
>>| a |
>>a _ #(1).
>>a at: 1 put: 2.
>>Transcript show: 'An array with... what? ', #(1) printString;cr.
In VisualAge for Smalltalk this code opens a Debugger
with the message 'Store into read-only object'. I think
this is a speciality of IBM Smalltalk.
Is there an ANSI-recommendation about literals or
'read-only objects' ?
Greetings,
Boris
mailto: Boris_Gaertner at msg.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020116/3edcc0c9/attachment.htm
More information about the Squeak-dev
mailing list
|