You should use $loader object to load external primitives to your
application. For example:

get_env = $loader.loadprim("[EMAIL PROTECTED]", 1);
$print("MOD_NEKO == ", get_env("MOD_NEKO"), "\n");

here I load get_env() function from standard NekoVM library. You can read
more about Neko loaders here http://nekovm.org/doc/vm

-- 

BR,
Vitali Falileev
http://insideable.com -- NekoUnit. Test it. ;-)
ICQ: 75008864

2007/8/16, Athanasios Anastasiou <[EMAIL PROTECTED]>:
>
> Hello Everyone
>
> I am new to Neko in particular and i am basically evaluating the
> language to see:
> 1)How easy it is to embed and use it as a scripting language
> 2)Suitability for web projects
>
> So i have this simple piece of code:
>
> int32 aVar=($)date_now();
> $print(date_format(aVar,"dd-mm-yyyy"));
>
> which fails when it reaches the date_now(). Parentheses at date_now()
> means that i have tried compiling with and without the dollar sign.
>
> Without the dollar sign i get an invlaid call exception and with the
> dollar sign i get a "Builtin not found" exception.
>
> So the ultra simple question is how do i use the functions defined in
> the libraries? Is there a "use" or "include" directive or something like
> this?
>
> Looking forward to hearing from you
> Athanasios
>
> --
> Neko : One VM to run them all
> (http://nekovm.org)
>
-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to