Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bogus "Useless use" warning for WhateverCode in EVAL #6068

Closed
p6rt opened this issue Feb 13, 2017 · 6 comments
Closed

Bogus "Useless use" warning for WhateverCode in EVAL #6068

p6rt opened this issue Feb 13, 2017 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 13, 2017

Migrated from rt.perl.org#130773 (status was 'resolved')

Searchable as RT130773$

@p6rt
Copy link
Author

p6rt commented Feb 13, 2017

From @smls

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)
  { ... }

@p6rt
Copy link
Author

p6rt commented Aug 26, 2017

From @smls

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.

@p6rt
Copy link
Author

p6rt commented Sep 15, 2017

From @skids

On Sat, 26 Aug 2017 05​:20​:14 -0700, smls75@​gmail.com wrote​:

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.

@p6rt
Copy link
Author

p6rt commented Sep 15, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 6, 2018

From @zoffixznet

On Thu, 14 Sep 2017 19​:16​:32 -0700, bri@​abrij.org wrote​:

On Sat, 26 Aug 2017 05​:20​:14 -0700, smls75@​gmail.com wrote​:

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.

Moved to rakudo/rakudo#1697

@p6rt
Copy link
Author

p6rt commented Apr 6, 2018

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Apr 6, 2018
@p6rt p6rt added the parser label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant