[perl #123396] [BUG] LTA error message when using a package as a nominal type on a parameter in Rakudo

2014-12-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #123396] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=123396 > m: role A::B {}; sub foo(A $a) {} rakudo-moar 662447: OUTPUT«===SORRY!=== Error while c

[perl #123397] [BUG] Declaring variables with a package type should be disallowed in Rakudo

2014-12-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #123397] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=123397 > m: role A::B {}; sub foo(A $a) {} rakudo-moar 662447: OUTPUT«===SORRY!=== Error while c

hash of lists of hashes, not hash of lists

2014-12-09 Thread Marc Chantreux
hello, using perl6 version 2014.09 built on MoarVM version 2014.09, i wrote this code my %posts = (ls "posts/*/index").map: { $_ => .IO.lines.map: { my %h = < date file title > Z .split(/<[\ \t]>+/,3); {%h} } }; %posts.gist.say; which outputs "posts/2014/i

Re: hash of lists of hashes, not hash of lists

2014-12-09 Thread Marc Chantreux
i made it so i reply to myself: On Tue, Dec 09, 2014 at 08:03:22PM +0100, Marc Chantreux wrote: > which is almost perfect, but i don't know how to say to perl6 something > like: I want a nested datastructure so please don't .list.item. use [] to surround the array my %posts = (ls "posts/*/ind

[perl #123400] Role + private method + is copy + array argument results in "no such item" error

2014-12-09 Thread via RT
# New Ticket Created by Rob Hoelz # Please include the string: [perl #123400] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=123400 > The attached code results in the following error: No such method 'item' for invocant of typ