in reply to Re: Ouch! Each! Reentrant it is not
in thread Ouch! Each! Reentrant it is not
It would seem that if the iterator was scoped then this wouldn't be a problem. Falling out of scope (end of the for each, or sub) would cause it to be deleted. The next call would reset it, of course this couldn't be changed now because there is surely code depending on that behaviour. I wonder if perl6 handles this better. Maybe in it hashes can return an iterator (or maybe they should if they don't).
___________
Eric Hodges
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Ouch! Each! Reentrant it is not
by BrowserUk (Patriarch) on Jul 15, 2005 at 17:14 UTC |
In Section
Meditations