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

Cannot call a sub named 'regex', 'token' or 'rule' #1481

Closed
p6rt opened this issue Feb 2, 2010 · 4 comments
Closed

Cannot call a sub named 'regex', 'token' or 'rule' #1481

p6rt opened this issue Feb 2, 2010 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 2, 2010

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

Searchable as RT72438$

@p6rt
Copy link
Author

p6rt commented Feb 2, 2010

From @masak

This be Rakudo a609d7 on Parrot r43600.

$ perl6 -e 'sub regex() { say "OH HAI" }; regex()'
Malformed regex definition at line 1, near "()"
[...]

$ perl6 -e 'sub token() { say "OH HAI" }; token()'
Malformed regex definition at line 1, near "()"
[...]

$ perl6 -e 'sub rule() { say "OH HAI" }; rule()'
Malformed regex definition at line 1, near "()"
[...]

Any bareword immediately followed by parentheses should be interpreted
as a subroutine call. Keywords should be no exception.

@p6rt
Copy link
Author

p6rt commented Aug 12, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 9, 2011

From @Kodiologist

Fixed in 8b8655b2a34; tests in S02-names_and_variables/names.t (roast
5e42fea45b).

@p6rt
Copy link
Author

p6rt commented Jan 9, 2011

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

@p6rt p6rt closed this as completed Jan 9, 2011
@p6rt p6rt added the Bug 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