[perl #131305] Useless Useless Use Warning when invoking colonpaired routines

2018-01-10 Thread Zoffix Znet via RT
On Tue, 23 May 2017 15:06:45 -0700, comdog wrote: > #`( > 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 no

[perl #131305] Useless Useless Use Warning when invoking colonpaired routines

2018-01-10 Thread Zoffix Znet via RT
On Tue, 23 May 2017 15:06:45 -0700, comdog wrote: > #`( > 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 no

[perl #131499] [BUG] Incorrect useless use warning in `andthen`/`notandthen`/`orelse`

2018-01-10 Thread Zoffix Znet via RT
On Sat, 03 Jun 2017 07:14:59 -0700, c...@zoffix.com wrote: > In none of these cases is the use of variables actually useless: > > m: my ($sensor1, $sensor2, $sensor3); $sensor1 notandthen > $sensor2 notandthen $sensor3 notandthen 'did not find a working > sensor!'.say; > rakudo-moar 64e898: OUTP

[perl #131499] [BUG] Incorrect useless use warning in `andthen`/`notandthen`/`orelse`

2018-01-10 Thread Zoffix Znet via RT
On Sat, 03 Jun 2017 07:14:59 -0700, c...@zoffix.com wrote: > In none of these cases is the use of variables actually useless: > > m: my ($sensor1, $sensor2, $sensor3); $sensor1 notandthen > $sensor2 notandthen $sensor3 notandthen 'did not find a working > sensor!'.say; > rakudo-moar 64e898: OUTP

[perl #131502] [BUG] Incorrect useless use warning when WhateverCode is passed as arg to Callable

2018-01-10 Thread Zoffix Znet via RT
On Sat, 03 Jun 2017 12:07:37 -0700, c...@zoffix.com wrote: > > The warning lies; this use isn't useless: > > m: -> +@foo { say @foo.head.(41) }(* == 42) > rakudo-moar 64e898: OUTPUT: «WARNINGS for :␤Useless use > of "==" in expression "* == 42" in sink context (line 1)␤False␤» > m: -> +@foo {

[perl #131502] [BUG] Incorrect useless use warning when WhateverCode is passed as arg to Callable

2018-01-10 Thread Zoffix Znet via RT
On Sat, 03 Jun 2017 12:07:37 -0700, c...@zoffix.com wrote: > > The warning lies; this use isn't useless: > > m: -> +@foo { say @foo.head.(41) }(* == 42) > rakudo-moar 64e898: OUTPUT: «WARNINGS for :␤Useless use > of "==" in expression "* == 42" in sink context (line 1)␤False␤» > m: -> +@foo {