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
can't call subs with namespaces, such as Foo::bar() #621
Comments
From @moritz00:11 <@moritz_> rakudo: module A { sub b { return 'bar' }}; say A::b() should return 'bar', of course 00:12 <@moritz_> rakudo: module A { sub b($x) { return 'bar' }}; say even more curious ;-) 00:12 <@jnthn> rakudo: module A { sub b { return 'bar' }}; say A::b works 00:13 <@jnthn> rakudo: module A { sub b { return 'bar' }}; say A::b() doesn't 00:16 <@moritz_> rakudo: module A { sub b($x) { return 'bar' }}; say So A::b() actually returns a Code object? Cheers, |
From @moritzOn Tue Jan 13 15:18:05 2009, moritz wrote:
The tests in t/spec/S11-modules/export.t did still pass because their Cheers, |
@moritz - Status changed from 'new' to 'open' |
From @jeffhorwitzthe Foo::bar() format for calling subs no longer works as of r35597. for if i run the following script, the second sub call never happens, and module Foo; sub bar($arg) bar("without namespace"); [jeff@groovy perl6]$ ../../parrot perl6.pbc x.p6 the PIR shows that instead of invoking the sub, rakudo is invoking "infix:,": .namespace ["Foo"] -jeff |
From @moritzThis is the same bug as RT #62326, with a bit different analysis. Merging. |
From @jnthnOn Tue Jan 13 15:18:05 2009, moritz wrote:
This and the various other cases in this ticket are resolved in r35763. Thanks! Jonathan |
1 similar comment
From @jnthnOn Tue Jan 13 15:18:05 2009, moritz wrote:
This and the various other cases in this ticket are resolved in r35763. Thanks! Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#62326 (status was 'resolved')
Searchable as RT62326$
The text was updated successfully, but these errors were encountered: