A bit more on this ticket after an IRC discussion: http://
irclog.perlgeek.de/perl6/2012-07-22#i_5837367

19:26   UncleFester6    r: our @a; say @a.perl; our %h; say %h.perl
19:26   p6eval  rakudo 3ac8c7: OUTPUT«Any␤Any␤»

As moritz++ suggests later in the discussion the evaluation of @a.perl 
and %h.perl to Any may be a hint as to the source of the bug.  If you 
do 'my @a; say @a.perl' you get 'Array.new()'.

Also the observation leads to new variations on the bug:

19:54   UncleFester6    r: our @a; my $x = shift @a;
19:54   p6eval  rakudo 3ac8c7: OUTPUT«Cannot call 'shift'; none of 
these signatures match:␤:(@a)␤␤  in block <anon> at /tmp/
KwEJ4wnr8k:1␤␤»

$ ./perl6 -e 'our %h; say values %h'
use of uninitialized value of type Any in string context  in block 
<anon> at -e:
1

These indicate that even if "our %h; %h{'A'} = 2" doesn't break right 
now there may be some basic related problems to address.

Finally moritz noticed that there is another ticket covering the second 
symptom of the subject line of this ticket, RT 100560.  I am suggesting 
that the two tickets be merged as adequately similar.

Ron


Reply via email to