Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTA error message when a Sub is on the right side of a ==> feed operator in Rakudo #2712

Closed
p6rt opened this issue Apr 11, 2012 · 5 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 11, 2012

Migrated from rt.perl.org#112396 (status was 'resolved')

Searchable as RT112396$

@p6rt
Copy link
Author

p6rt commented Apr 11, 2012

From @masak

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

@p6rt
Copy link
Author

p6rt commented Nov 21, 2012

From @FROGGS

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␤»

@p6rt
Copy link
Author

p6rt commented Nov 21, 2012

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 9, 2017

From @MasterDuke17

The error message was improved and a test added to Rakudo for the better message in rakudo/rakudo#1077

@p6rt
Copy link
Author

p6rt commented May 9, 2017

@MasterDuke17 - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed May 9, 2017
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant