In message <[EMAIL PROTECTED]>
"David L. Nicol" <[EMAIL PROTECTED]> wrote:
> "David L. Nicol" wrote:
>
> > > In perl 6 the keys and values functions should no longer use the
> > > same iterator as the each function - each use of keys and values
> > > should use it's own private iterator instead.
>
> we could put it in a variable associated with the instance of the
> keyword. An associative array of threads to current-values.
I don't think you need anything that complicated - the keys op
would just push an iterator onto the stack in place of the list
of values, and the next op would then pull the iterator off and
use it or whatever.
Tom
--
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
...Hard work never killed anyone but why take a risk?