At 11:12 PM 9/30/00 +0200, Bart Lateur wrote:
>On 28 Sep 2000 19:40:01 -0000, Perl6 RFC Librarian wrote:
>
> >=head2 How iterators might work in perl 6
> >
> >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.
>
>Is that per Damian? The iterator stored in the syntax tree? So, what
>happens if there's a recursive function call, to a function containing
>keys()?

I'd rather not store the iterator in the optree or, if we do, make it 
lexically scoped. I'd actually *really* like to make iterators explicit 
objects all by themselves, but it's too much work for most uses of iterators...

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to