On Mon Nov 05 14:45:00 2012, jn...@jnthn.net wrote:
> On Sat Feb 12 13:15:58 2011, masak wrote:
> > <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 :-)
> 
> Seems to work now:
> 
> > my %g; push %g<gamme>, 5; say %g.perl
> ("gamme" => [5]).hash
> 
> Tagging testneeded.
> 
> /jnthn
> 

Found skipped tests in S09-autovivification/autovivification.t, fixed & 
unfudged them.

-- 
Will "Coke" Coleda

Reply via email to