johann Sorel | 27 Oct 2011 20:56
Favicon

Compile , load and unload modules


Good Evening,

I'm starting to like this nekovm syntaxe, much better than parrot pir and winxed. :)

I am searching a bit more informations on compilation and loading.
What I am trying to achive is some kind of module manager (not neko modules but higher level more like java
.jar archives).

So I have a .neko or .nxml file and would like to compile it to a .n .(from my application, which is also written
in neko). something like calling 'nekoc' but within neko ?
When .n file is done, I would like to know how to load it (from a random path) and how to unload it if that's
possible ?

thanks

johann

____________________________________________________________
TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if5
Capture screenshots, upload images, edit and send them to your friends
through IMs, post on Twitter®, Facebook®, MySpace™, LinkedIn® – FAST!

--

-- 
Neko : One VM to run them all
(http://nekovm.org)

Nicolas Cannasse | 27 Oct 2011 21:21
Favicon
Gravatar

Re: Compile , load and unload modules

Le 27/10/2011 20:56, johann Sorel a écrit :
>
> Good Evening,
>
> I'm starting to like this nekovm syntaxe, much better than parrot pir and winxed. :)
>
> I am searching a bit more informations on compilation and loading.
> What I am trying to achive is some kind of module manager (not neko modules but higher level more like java
.jar archives).
>
> So I have a .neko or .nxml file and would like to compile it to a .n .(from my application, which is also
written in neko). something like calling 'nekoc' but within neko ?
> When .n file is done, I would like to know how to load it (from a random path) and how to unload it if that's
possible ?

You'll have to compile the nekoc sources, then load the nekoc modules 
(except neko/Main) in order to perform that.

Look at how nekoml translate to neko and check src/neko/Main.nml to see 
what api you need to call.

Best,
Nicolas

--

-- 
Neko : One VM to run them all
(http://nekovm.org)


Gmane