: 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
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
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;
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