# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #79192] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=79192 >
<masak> rakudo: say (*.&say).WHAT <p6eval> rakudo 015d77: OUTPUT«Whatever()<0x8319460>Bool()» <masak> shouldn't that be a closure? <jnthn> masak: hmm...mebbe... :) <jnthn> I guess it gets re-written to a sub call in the PAST tree and then fails to be seen as a "oh yes curry me" method call :) * masak submits rakudobug <masak> I had a nice rewrite of dugg++'s code kata that depended on this working: <masak> rakudo: sub center(*...@lines) { sub lfill($s, $n) { " " x $n ~ $s }; @lines.map: *.&lfill((my $maxlen - .chars) / 2) given $maxlen = [max] @lines>>.chars }; say center "This", "is", "a test" <p6eval> rakudo 015d77: OUTPUT«No candidates found to invoke for method 'map' on object of type 'Array'; [...] dugg's original code is here: https://gist.github.com/676143 The original code kata is here: http://perl.plover.com/qotw/r/001 It feels a bit inconsistent that *.say works fine (it creates a closure { $_.say }), but *.&say doesn't.