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

Owner: Nobody
Requestors: comdog <brian.d.foy [at] gmail.com>
cpan [at] zoffix.com
Cc:
AdminCc:

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



Subject: Useless Useless Use Warning when invoking colonpaired routines
Download (untitled) / with headers
text/plain 406b
The `constant value [ ]` is not uselessly used here, as the warning claims: <Zoffix_> m: say &postcircumfix:<[ ]>([1], 0) <camelia> rakudo-moar 4c8136: OUTPUT: «WARNINGS for <tmp>:␤Useless use of constant value [ ] in sink context (lines 1, 1)␤1␤» Can be worked around with: <Zoffix_> m: say ::('CORE::&postcircumfix:<[ ]>')([1], 0) <camelia> rakudo-moar 4c8136: OUTPUT: «1␤»
Subject: Useless 'Useless use' comes out of is tighter
To: rakudobug [...] perl.org
From: brian d foy <brian.d.foy [...] gmail.com>
Date: Tue, 23 May 2017 18:06:01 -0400
Download (untitled) / with headers
text/plain 434b
#`( When I compile this code, I get the error: Useless use of constant value [ ] in sink context (lines 9, 9) I don't think it was useless because it did what I needed. I really wanted the ᔑ to be tighter then ., but that's not a real operator and I ccouldn't use it to set precedence. ) sub prefix:<ᔑ> (Pair $p --> Pair) is tighter(&postcircumfix:<[ ]>) { $p.value => $ = $p.key }
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 624b
On Tue, 23 May 2017 15:06:45 -0700, comdog wrote: Show quoted text
> #`( > When I compile this code, I get the error: > > Useless use of constant value [ ] in sink context (lines 9, 9) > > I don't think it was useless because it did what I needed. > > I really wanted the ᔑ to be tighter then ., but that's not a real > operator and I ccouldn't use it to set precedence. > ) > > sub prefix:<ᔑ> (Pair $p --> Pair) is tighter(&postcircumfix:<[ ]>) { > $p.value > => > $ = $p.key > }
Based on symptoms and bisection results, this is the same issue as RT#131305 Merging this ticket there...


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