Skip Menu |
Report information
Id: 128391
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at]

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)

To: rakudobug [...]
Date: Sun, 12 Jun 2016 15:11:37 +0100
Subject: [BUG] Parameter deparses bogusly
From: Zefram <zefram [...]>
Download (untitled) / with headers
text/plain 758b
Show quoted text
> :($a).params[0].WHAT.perl
Parameter Show quoted text
> :($a).params[0].perl
Mu $a Show quoted text
> :($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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at