Skip Menu |
Queue is disabled
This queue is disabled and you may not create new tickets in it. Disabled queues are usually because the distribution was merged with another or changed names. Sometimes they are the end result of a bad autocreate from PAUSE data before anyone noticed.
Report information
Id: 112396
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



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>
Download (untitled) / with headers
text/plain 954b
<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.
Download (untitled) / with headers
text/plain 309b
if it is ok for std, it should work somehow, right? <FROGGS> r: 3 ==> &sin ==> &say <p6eval> rakudo bf472b: OUTPUT«===SORRY!===␤Sorry, do not know how to handle this case of a feed operator yet. at line 2, near " &say"␤» <FROGGS> std: 3 ==> &sin ==> &say <p6eval> std d38bbd0: OUTPUT«ok 00:00 44m␤»
Download (untitled) / with headers
text/plain 126b
The error message was improved and a test added to Rakudo for the better message in https://github.com/rakudo/rakudo/pull/1077


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org