Set asArray method
Martin Wirblat
sql.mawi at t-link.de
Mon Oct 17 21:07:17 UTC 2005
Ralph Boland wrote:
> I discovered that Set inherits the asArray method from Collection
> which is written
> as follows:
> "
> | anArray index |
> anArray := Array new: self size.
> index := 0.
> self associationsDo: [:each | anArray at: (index := index + 1) put: each].
> ^ anArray
> "
>
In my 3.6 it uses "self do:" and not "self associationsDo:". Did you
load a SM-package that changed that? If so, that would be a severe bug.
Regards,
Martin
More information about the Squeak-dev
mailing list
|