[ANSI-Smalltalk] on the pitfalls of design... (short :-)
Panu Logic
panulogic at gmail.com
Sat Mar 22 19:47:35 GMT 2008
Paolo Bonzini wrote:
>>>> (OrderedCollection new <- true <- false <- #foo) ....
>> Object >> <- anObject
>> ^ OrderedCollection new add: self; add: anObject; yourself
> The above code gives
>
> OrderedCollection (OrderedCollection (OrderedCollection
> (OrderedCollection () true ) false ) #foo )
Which Smalltalk implementation are we talking about here?
In my Dolphin6, after adding the above definition, I get:
OrderedCollection new <- true <- false <- #foo.
RETURNS:
an OrderedCollection(true false #foo)
I think this just goes to show that a new standard - with multiple
standard-compliant implementations - is much in need indeed.
-Panu Viljamaa
More information about the ANSI-Smalltalk
mailing list