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
Built-ins all, any, one, none
clobber user-defined zero-arg functions with same name
#5036
Comments
From ceronman@gmail.comThe following error seems to be a bug: $ perl6 -e 'sub one { 1 }; say one;' My setup: $ perl6 --version The discussion on #perl6 about it: [21:55] <ceronman> Hi everyone, I just installed Perl 6 on OS X (via brew |
From @smlsIt doesn't only happen with &one, but with all the Junction-constructing subroutines. ➜ sub all { 1 }; say all; It may have to do with their signature (as reported by the `.signature` introspection method): sub all (+ is raw) However, the subroutine &list has the same signature, and does not suffer from this issue: sub list (+ is raw) |
From @zoffixznetOn Tue, 10 May 2016 14:27:20 -0700, smls75@gmail.com wrote:
They're actually special-cased in the grammar[^1] based on their name: If it's possible to determine whether the name belongs to a non-core routine at the point where the error is emitted in the grammar, that'd be one way of avoiding the issue. |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#127235 (status was 'open')
Searchable as RT127235$
The text was updated successfully, but these errors were encountered: