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

Better handling of unqualified indirect quoted private method calls #5844

Open
p6rt opened this issue Dec 1, 2016 · 1 comment
Open

Better handling of unqualified indirect quoted private method calls #5844

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

Comments

@p6rt
Copy link

p6rt commented Dec 1, 2016

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

Searchable as RT130228$

@p6rt
Copy link
Author

p6rt commented Dec 1, 2016

From winexpertu@yandex.ru

Rakudo version 2016.11 built on MoarVM version 2016.11 implementing Perl 6.c currently prints rather unhelpful error message for code like this​:

method { self!"bar"() }(42)

«No such method 'find_private_method' for invocant of type 'Perl6​::Metamodel​::PackageHOW'␤ in method <anon> at <tmp> line 1␤ in block <unit> at <tmp> line 1␤»

as opposed to something like "Private method call to bar must be fully qualified with the package containing the method", at least, even tho for this particular case, another kind of message should be given, since there is no way to fully-qualify the call using such indirect quoted call syntax.
Having more meaningful messages sure would be helpful.

@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