# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #66702] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66702 >
<[particle]> rakudo: sub postcircumfix:<[ ]>(Str $s: @i) { my $res = ""; for @i { $res ~= substr($s, $_, 1) }; $res }; say "OH HAI WORLD"[7,0,7,2,9,4,-1] <p6eval> rakudo 9dc941: OUTPUT«error:imcc:syntax error, unexpected IDENTIFIER ('self') in file 'EVAL_24' line 102too many arguments passed (2) - 1 params expectedin sub postcircumfix:[ ] (/tmp/4NJRkuTmfe:1) [...] <[particle]> oops... <Matt-W> I think perhaps rakudo could have a better error message there <[particle]> it must be a method when defined with an invocant <[particle]> yes, indeed. <[particle]> better error messages wanted, and we'll have them when we move to STD.pm * Matt-W waits for masak to say he's filing a bug * masak files rakudobug