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

Owner: Nobody
Requestors: smls75 [at]

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 [...]
Subject: [BUG] Bogus "Useless use" warning for WhateverCode in EVAL
From: "Sam S." <smls75 [...]>
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) { ... }

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