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

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

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



Subject: Negative values are not allowed in --> part of the signature (sub f (--> -42) {})
Download (untitled) / with headers
text/plain 435b
Code: sub foo (--> 42) {} say foo Result: 42 OK, that works, let's try -42: Code: sub foo (--> -42) {} say foo Result: ===SORRY!=== Error while compiling -e Malformed return value at -e:1 ------> sub foo (-->⏏ -42) {} 「- 42」 is not a constant by itself, yes. But internally we provide a workaround for other places where a negative value may be needed (e.g. 「sub foo(-42)」, so I think this is where we should do it too.


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

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