in reply to Re (tilly) 1: Perl 6 coroutines (RFC 31)
in thread Perl 6 coroutines (RFC 31)
Of course, one could avoid using localized globals inside coroutines/generators in the first place, but where's the fun in that, I ask ;)sub my_iter { for (@_) { yield $_; # upon return, $_ may no longer be localized. if we # modify it, we could be modifying a global value # outside our scope. there's no way to tell, and # that's rather nasty. } }
MeowChow s aamecha.s a..a\u$&owag.print
|
|---|