Re: Perl6 and Duff's Device

2005-03-22 Thread TOGoS
> : I believe Perl 6 hasn't changed its policy on > : labels, so you should be > : able to write that in Perl 6. But your behavior > : might be undefined. > : It's weird to jump into the middle of a loop. > : We may only allow you to > : jump outwards from your dynamic scope. > > Perl 5's policy

Re: Perl6 and Duff's Device

2005-03-21 Thread Larry Wall
On Sun, Mar 20, 2005 at 05:27:56PM -0700, Luke Palmer wrote: : I believe Perl 6 hasn't changed its policy on labels, so you should be : able to write that in Perl 6. But your behavior might be undefined. : It's weird to jump into the middle of a loop. We may only allow you to : jump outwards from

Re: Perl6 and Duff's Device

2005-03-20 Thread Luke Palmer
Gaal Yahas writes: > It looks like Duff's Device > won't be possible in Perl6. This is a shame. > > sub duff ($from) { > # real life would use reference here, this is a demo > # dummy: simulate write to serial i/o port >