# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #109476]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=109476 >


<grondilu> perl6:  my %h = (<foo> => []); push %h<foo>, my $foo =
"bar"; say $foo; # I'm a expecting "bar"
<p6eval> pugs b927740, niecza v13-389-g852f0ff: OUTPUT«bar␤»
<p6eval> ..rakudo ce5cca: OUTPUT«Any()␤»
<grondilu> rakudo--, niecza++
<moritz> rakudo: my %h = (<foo> => []); push %h<foo>, (my $foo =
'bar'); say $foo
<p6eval> rakudo ce5cca: OUTPUT«bar␤»
<grondilu> shoudn't '=' come before ',' ?
<moritz> there are two '=' with different precedence :/
<grondilu> perl6:  my %h = (<foo> => []); my $foo; push %h<foo>, $foo
= "bar"; say $foo; # I'm a expecting "bar"
<p6eval> pugs b927740, niecza v13-389-g852f0ff: OUTPUT«bar␤»
<p6eval> ..rakudo ce5cca: OUTPUT«Any()␤»
<grondilu> I'm pretty sure it should give 'bar'
<masak> aye.
<grondilu> notice that it works better with a plain array:
<grondilu> rakudo: push my @a, my $foo = "bar";  say $foo
<p6eval> rakudo ce5cca: OUTPUT«bar␤»
<masak> do we have an RT ticket for this?
<masak> ISTR we have something about item assignment...
<masak> ah, we have https://rt.perl.org/rt3/Ticket/Display.html?id=67944
<masak> but it's resolved.
* masak submits new rakudobug

Reply via email to