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

Cannot pass named arguments to a macro #3153

Open
p6rt opened this issue Jun 3, 2013 · 2 comments
Open

Cannot pass named arguments to a macro #3153

p6rt opened this issue Jun 3, 2013 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 3, 2013

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

Searchable as RT118273$

@p6rt
Copy link
Author

p6rt commented Jun 3, 2013

From @masak

<lue> r​: macro foo(​:$flag) { quasi { say 42 } if $flag }; foo(​:flag);
<camelia> rakudo b2072f​: OUTPUT«===SORRY!===␤Too many positional
parameters passed; got 1 but expected 0 [...]»
* lue thought he had an answer for a second, but nope
<lue> Am I not allowed to use named parameters in macros, or is that a bug?
<masak> lue​: that's a bug.
* masak submits rakudobug
<masak> or, hm.
<masak> I'm not sure.
<masak> but it's worth filing anyway :)

@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