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


<stifynsemons> Another newbie question: my %g; %g<gamma>.[].push(5)
doesn't auto-vivify hash element gamma. So I have to use my %g;
%g<gamma>=[]; %g<gamma>.[].push(5). Is there a simpler syntax?
<sorear> stifynsemons: I suspect push %g<gamma>, 5 should work
<stifynsemons> push %g<gamma>, 5 doesn't work in 201101 rakudo star
<sorear> (%g<gamma> //= []).push(5) will definitely work
<masak> rakudo: my %g; push %g<gamme>, 5; say %g.perl
<p6eval> rakudo : OUTPUT«Method '!fill' not found for invocant of class '' [...]
<moritz_> I'm pretty sure both the sub and method form should work
* masak is surprised the spectests wouldn't pick something like that up.
* masak submits rakudobug
<masak> stifynsemons++
<moritz_> masak: there are tests for that. They are just fudged :-)

Reply via email to