Skip Menu |
Report information
Id: 130773
Status: open
Priority: 0/
Queue: perl6

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

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



Date: Mon, 13 Feb 2017 14:36:26 +0100
To: rakudobug [...] perl.org
Subject: [BUG] Bogus "Useless use" warning for WhateverCode in EVAL
From: "Sam S." <smls75 [...] gmail.com>
Download (untitled) / with headers
text/plain 498b
EVAL is usually happy to return the result of its expression without warnings: ➜ say EVAL '1+1'; 2 ➜ say EVAL '({ $^a + $^b })' -> $a, $b { #`(Block|56854080) ... } But when the expression is a WhateverCode, it prints a "Useless use [...] in sink context" warning, which is bogus because the value is in fact returned and not sunk: ➜ say EVAL '*+*'; WARNINGS for /home/sam/EVAL_0: Useless use of "+" in expression "*+*" in sink context (line 1) { ... }
Download (untitled) / with headers
text/plain 135b
This bug is still present in Rakudo version 2017.08-8-g753c9a5ea built on MoarVM version 2017.08.1-19-g151a2563 implementing Perl 6.c.
Download (untitled) / with headers
text/plain 292b
On Sat, 26 Aug 2017 05:20:14 -0700, smls75@gmail.com wrote: Show quoted text
> This bug is still present in > > Rakudo version 2017.08-8-g753c9a5ea built on MoarVM version 2017.08.1- > 19-g151a2563 > implementing Perl 6.c.
Fudged tests preemptively added to S02-types/whatever.t in roast commit 4b2fef409.


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