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

Owner: Nobody
Requestors: thundergnat [at] comcast.net
Cc:
AdminCc:

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



Subject: [BUG] Weird interaction between constants, Xops and pre-comp.
To: rakudobug [...] perl.org
Date: Sun, 20 Dec 2015 10:58:53 -0500
From: thundergnat <thundergnat [...] comcast.net>
Download (untitled) / with headers
text/plain 729b
If I build constant arrays, use those arrays to built _other_ constant arrays with meta operators and then try to access those arrays from a pre compiled module, I get an error: "Cannot invoke this object" It doesn't seem to happen if the arrays are declared "my" array, It doesn't seem to happen if I don't use Meta operators to build the arrays. It doesn't seem to happen when run in the same file, only when pre-compiled and loaded as a module. May be an example of DIHWIDT, but I spent several hours tracking down errors that only occurred when code got packaged as a module and pre-compiled. See: https://github.com/thundergnat/Lingua-EN-Numbers-Cardinal for larger example. Demo files attached: Bogus.pm6 and bogus.p6
Download bogus.p6
text/plain 39b

Message body is not shown because sender requested not to inline it.

Download Bogus.pm6
text/plain 196b

Message body is not shown because sender requested not to inline it.



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