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

Owner: Nobody
Requestors: bri [at]

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

Subject: Useless use warning triggered on assignment forms of reverse metaops
Download (untitled) / with headers
text/plain 464b
An R metaop using the bracket notation to retain lvalueness of the lvalue side triggers a "useless use" warning in sink context, and shouldn't. (10:00:22 PM) skids: m: my $a = "H"; say $a [R~]= "T"; $a.say; $a [R~]= "W"; $a.say (10:00:22 PM) camelia: rakudo-moar f4cbdb: OUTPUT: «Potential difficulties:␤ Useless use of [R~]= in sink context␤ at <tmp>:1␤ ------> $a = "H"; say $a [R~]= "T"; $a.say; $a ⏏[R~]= "W"; $a.say␤TH␤TH␤WTH␤»

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