Navigation Menu

Skip to content

Commit

Permalink
++ and -- in both their prefix and postfix forms now use infix:<=>, w…
Browse files Browse the repository at this point in the history
…hich means they do read-only checking properly. This corrects RT#60380, but does cause some failures in for.t since <-> is not implemented, but accidentally worked before; will fix that in my next commit.
  • Loading branch information
jnthn committed Feb 11, 2009
1 parent 1a2f50c commit 45cf376
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/builtins/op.pir
Expand Up @@ -35,7 +35,9 @@ src/builtins/op.pir - Perl 6 builtin operators
if $I0 goto have_a
'infix:='(a, 0)
have_a:
inc a
$P1 = a.'clone'()
inc $P1
'infix:='(a, $P1)
.return ($P0)
.end
Expand All @@ -46,7 +48,9 @@ src/builtins/op.pir - Perl 6 builtin operators
if $I0 goto have_a
'infix:='(a, 0)
have_a:
dec a
$P1 = a.'clone'()
dec $P1
'infix:='(a, $P1)
.return ($P0)
.end
Expand All @@ -57,7 +61,9 @@ src/builtins/op.pir - Perl 6 builtin operators
if $I0 goto have_a
'infix:='(a, 0)
have_a:
inc a
$P0 = a.'clone'()
inc $P0
'infix:='(a, $P0)
.return (a)
.end
Expand All @@ -68,7 +74,9 @@ src/builtins/op.pir - Perl 6 builtin operators
if $I0 goto have_a
'infix:='(a, 0)
have_a:
dec a
$P0 = a.'clone'()
dec $P0
'infix:='(a, $P0)
.return (a)
.end
Expand Down

0 comments on commit 45cf376

Please sign in to comment.