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

dispatch:<.=> is busted when used with \foo variables #1461

Closed
zoffixznet opened this issue Jan 31, 2018 · 1 comment
Closed

dispatch:<.=> is busted when used with \foo variables #1461

zoffixznet opened this issue Jan 31, 2018 · 1 comment

Comments

@zoffixznet
Copy link
Contributor

m: my \foo .= Str
rakudo-moar 72948e847: OUTPUT: «===SORRY!===␤Method call node requires at least one child␤»

# Wrong result; should be 42:
m: my Int \foo .= new: 42; say foo
rakudo-moar 72948e847: OUTPUT: «0␤» 
@zoffixznet zoffixznet changed the title META ASSIGN is busted when used with \foo variables META ASSIGN with method call is busted when used with \foo variables Jan 31, 2018
@zoffixznet zoffixznet changed the title META ASSIGN with method call is busted when used with \foo variables dispatch:<.=> is busted when used with \foo variables Jan 31, 2018
@jnthn
Copy link
Member

jnthn commented Jan 31, 2018

I agree it'd be very nice to make this work, though will note that = with sigilless variables is really binding. So we'll have to compile it in such a way that it doesn't use dispatch:<.=>, since that relies on being able to assign. (Alternatively, since for various of the dispatch:<...> methods we've been switching to towards QAST generation anyway, we could just go that way).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants