[squeak-dev] The Trunk: System-cwp.660.mcz

Florin Mateoc florin.mateoc at gmail.com
Sat Jan 11 21:51:17 UTC 2014


On 1/11/2014 4:29 PM, Colin Putney wrote:
>
>
>
> On Sat, Jan 11, 2014 at 12:11 PM, Florin Mateoc <florin.mateoc at gmail.com <mailto:florin.mateoc at gmail.com>> wrote:
>  
>
>     I would think that materializing proxies or otherwise creating new objects within an allObjectsDo: loop is a bug, just
>     as it usually is whenever one grows a collection while iterating over it. It is the responsibility of the caller to
>     ensure that this does not happen.
>
>
> If that's the case, then the caller may not send any messages to the objects enumerated. That seems overly restrictive
> to me. 
>  
> Colin
>  
>
>

I am curious how would you implement #nextObject so that you could iterate over all objects in an image even if you
create new objects after the first call to #nextObject.

Florin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140111/5330c3c9/attachment.htm


More information about the Squeak-dev mailing list