On Mon, Dec 31, 2007 at 11:17:53PM +0300, Richard Hainsworth wrote:
> Not sure whether this should be p6-lan or p6-users. Posted to p6l only.
Since the question is specific to perl6 and Parrot, it probably
belongs on perl6-compiler. But I'll answer it here for now,
as it may spark a language rela
Richard Hainsworth wrote:
Given a function implemented in parrot, how can it be called from a
perl6 program?
To use functions from a class or module in a different language, you
will be able to use "use" to include the module, but with the language
name out the front. So:
use parrot:SomeModul
Not sure whether this should be p6-lan or p6-users. Posted to p6l only.
Given a function implemented in parrot, how can it be called from a
perl6 program?
Suppose I have a file (in current path)
myfun.pir
which contains
.sub myfun
.param pmc passed_variable
.local int an_int
an_int