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

LTA error message on trying to metaop-reverse binding (:=) in Rakudo #3185

Closed
p6rt opened this issue Jul 6, 2013 · 4 comments
Closed

LTA error message on trying to metaop-reverse binding (:=) in Rakudo #3185

p6rt opened this issue Jul 6, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 6, 2013

Migrated from rt.perl.org#118793 (status was 'resolved')

Searchable as RT118793$

@p6rt
Copy link
Author

p6rt commented Jul 6, 2013

From @masak

<sorear> strongly macroey operators like := can't be metaopped at all
<sorear> rn​: my $x; 5 R​:= $x; say $x
<camelia> rakudo 7d7df4​: OUTPUT«Nominal type check failed for
parameter 'op'; expected Any but got Mu instead␤ in sub
METAOP_REVERSE [...]
<camelia> ..niecza v24-86-g39ab531​: OUTPUT«===SORRY!===␤␤Cannot
reverse the args of := because list assignment operators are too
fiddly at /tmp/zIuIfbFJwJ line 1​:␤------> my $x; 5 R​:=⏏ $x; say
$x␤␤This macro cannot be used as a function at /tmp/zIuIfbFJwJ line …
* masak submits LTA rakudobug

@p6rt
Copy link
Author

p6rt commented Jan 3, 2015

From @usev6

This was fixed recently​: rakudo/rakudo@f53153de10

$ perl6 -e 'my $x; 5 R​:= $x; say $x'
===SORRY!=== Error while compiling -e
Cannot reverse the args of := because list assignment operators are too fiddly
at -e​:1
------> my $x; 5 R​:=⏏ $x; say $x

I added a test to S03-metaops/reverse.t with commit Raku/roast@da2561a8b6

I'm closing this ticket.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 3, 2015

From @usev6

This was fixed recently​: rakudo/rakudo@f53153de10

$ perl6 -e 'my $x; 5 R​:= $x; say $x'
===SORRY!=== Error while compiling -e
Cannot reverse the args of := because list assignment operators are too fiddly
at -e​:1
------> my $x; 5 R​:=⏏ $x; say $x

I added a test to S03-metaops/reverse.t with commit Raku/roast@da2561a8b6

I'm closing this ticket.

@p6rt p6rt closed this as completed Jan 3, 2015
@p6rt
Copy link
Author

p6rt commented Jan 3, 2015

@usev6 - Status changed from 'new' to 'resolved'

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

No branches or pull requests

1 participant