develooper Front page | perl.perl6.compiler | Postings from April 2012

[perl #112396] [BUG] LTA error message when a Sub is on the right side of a ==> feed operator in Rakudo

From:
Carl Mäsak
Date:
April 11, 2012 05:18
Subject:
[perl #112396] [BUG] LTA error message when a Sub is on the right side of a ==> feed operator in Rakudo
Message ID:
rt-3.6.HEAD-4610-1334146690-121.112396-82-0@perl.org
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #112396]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112396 >


<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.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About