Christian Renz wrote:
> I recently got my feet wet with Pugs. So far, it's been fun
> :-).

Cool!

> However, I couldn't find any information on how to access
> functions defined in parrot, or even how to use classes defined as
> PMCs in parrot. Is this possible already?

If Pugs is linked with Parrot (env PUGS_EMBED=parrot perl Makefile.PL),
this should work (may require blead parrot as 0.3.0 has a nasty bug in
its C embedding interface):

    eval("print 1", :lang<pir>)

as well as this syntax:

    require_parrot 'foo.pir';

We don't currently have a way to bind Parrot symbols as Pugs symbols.
Feel free to write up tests in t/ -- maybe t/embed/ -- on how you think
it should behave.  Alternately, come to irc.freenode.net #perl6 and
chat a bit on how you plan to use it; posting p6c is fine too.

Thanks,
/Autrijus/

PS. I just sent you a committer bit; welcome aboard, and remember  to check in
your name to AUTHORS under the subversion repo http://svn.openfoundry.org/pugs/
:-)

Reply via email to