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

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

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



Subject: require Foo <&foo> is broken
Date: Sun, 10 Jan 2016 20:34:32 +0000
From: Lloyd Fournier <lloyd.fourn [...] gmail.com>
To: "rakudobug [...] perl.org" <rakudobug [...] perl.org>
Download (untitled) / with headers
text/plain 585b
Looks like we've got a regression.
# lib/Foo.pm6
sub ok is export { }

perl6 -Ilib -e 'require Foo <&ok>;'
WARNINGS for -e:
Useless use of constant string "Foo" in sink context (lines 1, 1)
Trying to import symbols &ok from 'Foo', but it does not export anything
  in block <unit> at -e line 1

perl6 -Ilib -e 'require ::("Test") <&ok>;'
WARNINGS for -e:
Useless use of constant string "Test" in sink context (lines 1, 1)

Obviously this ticket is not focused on the warning but it would be cool if that got fixed. BTW roast only tests require on Test.pm which is why this got missed.
Subject: Re: [perl #127233] require Foo <&foo> is broken
Date: Sun, 10 Jan 2016 20:40:33 +0000
From: Lloyd Fournier <lloyd.fourn [...] gmail.com>
To: perl6-compiler [...] perl.org, bugs-bitbucket [...] rt.perl.org
Download (untitled) / with headers
text/plain 1.1k
Doh. Obviously that first example should be:

perl6 -Ilib -e 'require ::("Foo") <&ok>;'
WARNINGS for -e:
Useless use of constant string "Foo" in sink context (lines 1, 1)
Trying to import symbols &ok from 'Foo', but it does not export anything
  in block <unit> at -e line 1


On Mon, Jan 11, 2016 at 7:35 AM Lloyd Fournier <perl6-bugs-followup@perl.org> wrote:
Show quoted text
# New Ticket Created by  Lloyd Fournier
# Please include the string:  [perl #127233]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=127233 >


Looks like we've got a regression.
# lib/Foo.pm6
sub ok is export { }

perl6 -Ilib -e 'require Foo <&ok>;'
WARNINGS for -e:
Useless use of constant string "Foo" in sink context (lines 1, 1)
Trying to import symbols &ok from 'Foo', but it does not export anything
  in block <unit> at -e line 1

perl6 -Ilib -e 'require ::("Test") <&ok>;'
WARNINGS for -e:
Useless use of constant string "Test" in sink context (lines 1, 1)

Obviously this ticket is not focused on the warning but it would be cool if
that got fixed. BTW roast only tests require on Test.pm which is why this
got missed.


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