[ANSI-Smalltalk] Behaviour of #collect:
Andres Valloud
andres.valloud at gmail.com
Thu Sep 25 11:00:07 BST 2008
I meant that as an entry point to avoid class receivers...
Andres.
On Thu, Sep 25, 2008 at 2:55 AM, Paolo Bonzini <bonzini at gnu.org> wrote:
> Andres Valloud wrote:
>> Or this?...
>>
>> 'abc' collect: [:x | x codePoint] into: Array
>
> But this cannot be implemented except as a call to
>
> Array collect: ... from: ...
>
> (or whatever the selector), because it's the new collection's class that
> knows how to create the new collection.
>
> Paolo
>
> _______________________________________________
> 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