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

Error when calling .^DEFINITE instead of .DEFINITE #5480

Open
p6rt opened this issue Jul 24, 2016 · 1 comment
Open

Error when calling .^DEFINITE instead of .DEFINITE #5480

p6rt opened this issue Jul 24, 2016 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Jul 24, 2016

Migrated from rt.perl.org#128714 (status was 'new')

Searchable as RT128714$

@p6rt
Copy link
Author

p6rt commented Jul 24, 2016

From @zoffixznet

When I looked at the docs for DEFINITE and saw mention of metamodel, I just assumed I'd need a `.^` method call. An error showed up, but it took me a little to get what the actual problem is,
complicated by my calling that on the implicit $_.

I still have no idea what "non-identifier method call" is. I can only guess it's the .WHAT, .WHO, and ilk. The error message should be improved by using clearer terms and suggesting using a `.` method call.

$ perl6 -e 'class {}.^DEFINITE'
===SORRY!=== Error while compiling -e
Cannot use .^ on a non-identifier method call
at -e​:1
------> class {}.^DEFINITE⏏<EOL>
  expecting any of​:
  method arguments

$ perl6 -e 'class {}.^WHAT'
===SORRY!=== Error while compiling -e
Cannot use .^ on a non-identifier method call
at -e​:1
------> class {}.^WHAT⏏<EOL>
  expecting any of​:
  method arguments

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant