Skip Menu |
Report information
Id: 130228
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: winexpertu [at] yandex.ru
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



From: Denis Alexandrov <winexpertu [...] yandex.ru>
Date: Thu, 01 Dec 2016 23:04:38 +0800
To: rakudobug <rakudobug [...] perl.org>
Subject: Better handling of unqualified indirect quoted private method calls
Download (untitled) / with headers
text/plain 700b
Rakudo version 2016.11 built on MoarVM version 2016.11 implementing Perl 6.c currently prints rather unhelpful error message for code like this: Show quoted text
> method { self!"bar"() }(42)
Show quoted text
> «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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org