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

&?ROUTINE cannot be used in subroutine's signature #5015

Open
p6rt opened this issue Jan 7, 2016 · 1 comment
Open

&?ROUTINE cannot be used in subroutine's signature #5015

p6rt opened this issue Jan 7, 2016 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 7, 2016

Migrated from rt.perl.org#127203 (status was 'new')

Searchable as RT127203$

@p6rt
Copy link
Author

p6rt commented Jan 7, 2016

From @zoffixznet

As can be seen below, using &?ROUTINE in the signature does not give the correct thing and .name method returns an empty string.

IRC conversation here​: http://irclog.perlgeek.de/perl6/2016-01-07#i_11848520

<Zoffix> m​: sub foo ($r = &?ROUTINE){ say $r.name }; foo()
<camelia> rakudo-moar ed6ec7​: OUTPUT«␤»
<Zoffix> m​: sub foo { say &?ROUTINE.name }; foo()
<camelia> rakudo-moar ed6ec7​: OUTPUT«foo␤»

@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