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

Parameter deparses bogusly #5370

Open
p6rt opened this issue Jun 12, 2016 · 1 comment
Open

Parameter deparses bogusly #5370

p6rt opened this issue Jun 12, 2016 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 12, 2016

Migrated from rt.perl.org#128391 (status was 'new')

Searchable as RT128391$

@p6rt
Copy link
Author

p6rt commented Jun 12, 2016

From zefram@fysh.org

:($a).params[0].WHAT.perl
Parameter
:($a).params[0].perl
Mu $a
:($a).params[0].perl.EVAL
===SORRY!=== Error while compiling /home/zefram/tmp/EVAL_3
Two terms in a row
at /home/zefram/tmp/EVAL_3​:1
------> Mu^ $a
  expecting any of​:
  infix
  infix stopper
  statement end
  statement modifier
  statement modifier loop

The Parameter.perl method is not producing an expression to construct the
Parameter object. Instead it is producing output intended to be used
in the syntactic context of a signature. Obviously that is a useful
facility, and indeed Signature.perl uses it, but it doesn't belong as
a .perl method. It needs a different name, and there should be a .perl
method that generates an expression.

-zefram

@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