[perl #118407] Importing sub using require causes Null PMC access

2016-08-17 Thread Will Coleda via RT
On Mon Jun 10 00:32:33 2013, dagurval wrote: > > say slurp("/tmp/a.pm6") > sub abc() is export { say "hello" } > > This works (given that it's NYI) > > require("/tmp/a.pm6") "&abc"; > abc(); > Trying to import symbols &abc from '/tmp/a.pm6', but it does not export > anything > > Without the amper

[perl #118407] Importing sub using require causes Null PMC access

2014-11-18 Thread Christian Bartolomaeus via RT
I can't reproduce the Null PMC access anymore: $ cat 118407.pm6 sub abc() is export { say "hello" } $ perl6-p > require("118407.pm6") "&abc"; abc(); Trying to import symbols &abc from '118407.pm6', but it does not export anything > require("118407.pm6") "abc"; abc(); Trying to import symbols ab

[perl #118407] Importing sub using require causes Null PMC access

2013-06-10 Thread via RT
# New Ticket Created by Dagur # Please include the string: [perl #118407] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=118407 > > say slurp("/tmp/a.pm6") sub abc() is export { say "hello" } This works (given that it