# New Ticket Created by  Zefram 
# Please include the string:  [perl #128391]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128391 >


> :($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

Reply via email to