|Subject:||[BUG] LTA error message when a Sub is on the right side of a ==> feed operator in Rakudo|
|Date:||Wed, 11 Apr 2012 14:17:45 +0200|
|To:||rakudobug [...] perl.org|
|From:||Carl Mäsak <cmasak [...] gmail.com>|
<moritz> r: 3 ==> &sin ==> &say <p6eval> rakudo 3bd91f: OUTPUT«Method 'push' not found for invocant of class 'Sub'␤ in <anon> at /tmp/s3gfh581h2:1␤ in block <anon> at /tmp/s3gfh581h2:1␤␤» <moritz> LTA :-) <jnthn> Yeah. I know exactly why it does that though :) <moritz> jnthn: me too * masak submits the LTA rakudobug <masak> r: 3 ==> &sin <p6eval> rakudo 3bd91f: OUTPUT«Method 'push' not found for invocant of class 'Sub'␤ in block <anon> at /tmp/do8gYQzeSJ:1␤␤» <jnthn> moritz: What should it do? <moritz> dunno. I don't know anything about feeds <moritz> jnthn: it tries to push things to the argument list, but it's not an argument list <jnthn> moritz: No, it's not that. <jnthn> nom: 1..10 ==> map(* + 2) ==> my @a; say @a; <p6eval> rakudo 3bd91f: OUTPUT«3 4 5 6 7 8 9 10 11 12␤» <jnthn> It's that it pushes on to an output variable. <jnthn> @a.push works out fine. :) <jnthn> And a Sub has no .push :) <moritz> jnthn: oh.