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 is to

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

Perl6 and Duff's Device

2005-03-20 Thread Gaal Yahas
It looks like Duff's Device http://www.lysator.liu.se/c/duffs-device.html 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 my $to; my $i = 0;

Re: Perl6 and Duff's Device

2005-03-20 Thread Luke Palmer
Gaal Yahas writes: It looks like Duff's Device http://www.lysator.liu.se/c/duffs-device.html 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 my