Ticket #1079 (closed bug: invalid)
Chaining operator ':=' is ignored in NQP
Description
Chaining a series of binding, like:
my $a; my $b; $a := $b := 0;
produces code that assigns the first var to the second, but ignores the second-third binding entirely:
.namespace []
.sub "_block11" :anon :subid("10_1254300777")
.annotate "line", 1
new $P13, "Undef"
.lex "$a", $P13
.annotate "line", 2
new $P14, "Undef"
.lex "$b", $P14
.annotate "line", 4
new $P15, "Integer"
assign $P15, 0
find_lex $P16, "$b"
unless_null $P16, vivify_11
new $P16, "Undef"
vivify_11:
store_lex "$a", $P16
.annotate "line", 1
.return ($P16)
.end
Change History
Note: See
TracTickets for help on using
tickets.
