[ANSI-Smalltalk] on the pitfalls of design... (short :-)
Panu Logic
panulogic at gmail.com
Sat Mar 22 20:13:43 GMT 2008
My mistake, Sorry
I now see the reason for the discrepancy.
In my image, I already had #<- defined also
for some subclasses of Object, including Collection.
Regardless I think the point still exists: You can
construct dynamic collections with a succinct syntax
without having to define special rules for literal Arrays.
-Panu Viljamaa
Panu Logic wrote:
> 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
>
>
>
>
> _______________________________________________
> ANSI-Smalltalk mailing list
> ANSI-Smalltalk at lists.openskills.org
> http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk
>
More information about the ANSI-Smalltalk
mailing list