My short answer would be that there's not a shortcut way in NQP
to avoid the fully-qualified sub names.  I'm doubtful that we want
to duplicate Perl 6's import mechanism into NQP.

Pm

On Fri, Jul 22, 2016 at 07:48:55AM -0500, Tom Browder wrote:
> ping
> 
> On Thu, Jul 7, 2016 at 7:49 AM, Tom Browder <[email protected]> wrote:
> > I have added a file "DebugPod.nqp" in the directory rakudo/src/Perl6
> > and want to use it for debugging other files in that directory.
> >
> > Following the format of the "Pod.nqp" file in that directory, I have
> > structured my new file this way:
> >
> >   Perl6::DebugPod {
> >     our sub debug_rows($desc, @rows) {...}
> >     our sub debug_array($desc, @arr) {...}
> >     # etc.
> >   }
> >
> > In file "Pod.nqp" I have added at the top before the class declaration:
> >
> >   use Perl6::DebugPod;
> >
> > Inside "Pod.nqp" I currently (and successfully) call the debug
> > functions like this:
> >
> >   Perl6::DebugPod::debug_rows('after &process_rows', @rows);
> >
> > The main question I have is "is there any way to avoid having to use
> > the fully-qualified sub name on the external functions?"
> >
> > Thanks.
> >
> > Best regards,
> >
> > -Tom

Reply via email to