# New Ticket Created by  Dagur 
# Please include the string:  [perl #118407]
# in the subject line of all future correspondence about this issue. 
# <URL: 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'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 ampersand however,
> require("/tmp/a.pm6") "abc"; abc();
Error while compiling block  (source text: "require(\"/tmp/a.pm6\")
\"abc\"; abc();\n"): Error while compiling op call: Error while compiling
block : Error while compiling op call: Null PMC access in
find_method('handle')
> 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 ampersand however,
> require("/tmp/a.pm6") "abc"; abc();
Error while compiling block  (source text: "require(\"/tmp/a.pm6\") \"abc\"; abc();\n"): Error while compiling op call: Error while compiling block : Error while compiling op call: Null PMC access in find_method('handle')

Reply via email to