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
Meta operators on infix operators aren't accessible as subs #2203
Comments
From @ashgti$ perl6
<TimToady> so Xxx really means something like crosswith(&infix:<xx>) So, there should be some &infix:<Xxx> function generated, somehow... I am not sure how to generate those, because Meta-ops can be repeated, but -- |
From @cokeNo change in last year. -- |
@coke - Status changed from 'new' to 'open' |
From @usev6On Sun Oct 03 10:35:17 2010, ash_gti wrote:
I'm not sure I understand this correctly, but doesn't TimToady++'s explanation mean, that the current implementation (which is unchanged) is correct and this is not a bug? It's possible to define an infix:<Xxx> with rakudo, like $ perl6-m -e 'sub infix:<Xxx> ($a, *@b) { return 42 }; say 2 Xxx <foo bar>' |
1 similar comment
From @usev6On Sun Oct 03 10:35:17 2010, ash_gti wrote:
I'm not sure I understand this correctly, but doesn't TimToady++'s explanation mean, that the current implementation (which is unchanged) is correct and this is not a bug? It's possible to define an infix:<Xxx> with rakudo, like $ perl6-m -e 'sub infix:<Xxx> ($a, *@b) { return 42 }; say 2 Xxx <foo bar>' |
From @FROGGSI understand TimToady in a way which would imply that rakudo would autogenerate an &infix:<Xxx> if it is requested by the user... Here is a workaround though: m: my &infix:<Xxx> = &infix:<X>; |
From @zoffixznetThis now works as described. Tests added: Raku/roast@8e585a4365 |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#78188 (status was 'resolved')
Searchable as RT78188$
The text was updated successfully, but these errors were encountered: