Skip to content

Commit

Permalink
Replace faked up while loop with real while loop.
Browse files Browse the repository at this point in the history
(must not have worked in earlier versions of nqp-rx)
  • Loading branch information
coke committed Jun 27, 2010
1 parent d9b60b0 commit 40e3fcd
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Partcl/commands/main.pm
Expand Up @@ -284,12 +284,7 @@ our sub global (*@args) {
}

our sub if(*@args) {
# while @args {
Q:PIR {
if_loop:
$P0 = find_lex '@args'
unless $P0 goto if_done
};
while @args {
my $expr := @args.shift;
my $body := @args.shift;
$body := @args.shift if $body eq 'then';
Expand All @@ -301,11 +296,7 @@ our sub if(*@args) {
return eval($else);
}
}
# }
Q:PIR {
goto if_loop
if_done:
};
}
'';
}

Expand Down

0 comments on commit 40e3fcd

Please sign in to comment.