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

using a module :from<Perl5> iterfers with next. #92

Closed
thundergnat opened this issue Mar 20, 2017 · 1 comment
Closed

using a module :from<Perl5> iterfers with next. #92

thundergnat opened this issue Mar 20, 2017 · 1 comment

Comments

@thundergnat
Copy link

When I run the following snippet:

use Inline::Perl5;
use Errno:from<Perl5>; # use ANY module from perl5. Errno is core.

for 1, 2, 3, 4, 5 -> $x {
    next if $x %% 2;
    print $x
}

I get:
WARNINGS for /home/steve/p6/next.p6:
Useless use of constant value next in sink context (line 5)
12345

See IRClogs around: https://irclog.perlgeek.de/perl6/2017-03-20#i_14297078

Rakudo 2017.03 on Moarvm 2017.03
Inline::Perl5 v0.24
Perl5 5.18.2
running on
Linux Mint

It also happens with older Rakudo and newer Perl5
It seems to not happen on OSX

niner added a commit that referenced this issue May 30, 2017
Lower case module names are reserved for pragmas. It doesn't make sense to
import them and the names may interfere with Perl 6' CORE subs.
Fixes GH #92
@niner
Copy link
Owner

niner commented May 30, 2017

Fixed by commit 693e576

@niner niner closed this as completed May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants