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

Can't store a macro declaration in a variable in Rakudo #2963

Open
p6rt opened this issue Nov 5, 2012 · 3 comments
Open

Can't store a macro declaration in a variable in Rakudo #2963

p6rt opened this issue Nov 5, 2012 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 5, 2012

Migrated from rt.perl.org#115610 (status was 'stalled')

Searchable as RT115610$

@p6rt
Copy link
Author

p6rt commented Nov 5, 2012

From @masak

<[Coke]> r​: my $a = macro foo() {}; say $a;
<p6eval> rakudo 64208d​: OUTPUT«===SORRY!===␤[...] Error while
compiling op p6store​: Unknown QAST node type NQPMu␤»
* masak submits [Coke]'s rakudobug
<[Coke]> I have no idea what I expect $a to contain there, btw. :)
<masak> [Coke]​: a Macro (which is a Routine)
<diakopter> r​: my $*a = macro { }
<p6eval> rakudo 64208d​: OUTPUT«===SORRY!===␤[...] Error while
compiling op p6store​: Unknown QAST node type NQPMu␤»
* [Coke] thinks that's the same as mine.
<masak> yes; I'll report them together.

@p6rt
Copy link
Author

p6rt commented Aug 25, 2013

From @masak

<Mouq> r​: my $why = macro dumb () { quasi { "aster" } }
<camelia> rakudo 38a0f9​: OUTPUT«===SORRY!===␤Error while compiling block [...]
<jnthn> huh...how can just assigning it go wrong...
* masak submits rakudobug
<moritz> it, like, doesn't return a proper code object?
<moritz> r​: say (macro d() { quasi { 42 }}).perl
<camelia> rakudo 38a0f9​: OUTPUT«()␤»
<moritz> r​: say (macro d() { quasi { 42 }}).^name
<camelia> rakudo 38a0f9​: OUTPUT«Parcel␤»
<moritz> WAT
<masak> indeed.
<masak> r​: say Macro
<camelia> rakudo 38a0f9​: OUTPUT«(Macro)␤»

@p6rt
Copy link
Author

p6rt commented Apr 26, 2016

@coke - Status changed from 'new' to 'stalled'

@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