[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Inlined blocks
From: |
Nicolas Petton |
Subject: |
Re: [Help-smalltalk] Inlined blocks |
Date: |
Sun, 24 Jan 2010 15:08:32 +0100 |
Le dimanche 24 janvier 2010 à 14:49 +0100, Paolo Bonzini a écrit :
> > c := OrderedCollection new.
> > 1 to: 10 do: [:each | c add: [each]].
> > c collect: [:each | each value]
> > -> OrderedCollection (11 11 11 11 11 11 11 11 11 11 11)
> >
> > It works fine using (1 to: 10) do: [...]
> >
> > In the future, I'll have to remember to avoid #to:do: with Iliad action
> > blocks :D
>
> Yes, please report a bug. I'll mark it as postponed immediately, but at
> least we know it's there.
ok :)
signature.asc
Description: Ceci est une partie de message numériquement signée