I found out how...
when i am going to execute my module i do an alloc_field to the module value
variable (where i loaded the module)
void execute( value module )
{
value a;
value ret;
alloc_field( module, val_id("modevalue"), alloc_int( 5 ) );
a = val_field(module,val_id("a"));
ret = val_call0(a);
printf("%d\n", val_int(ret));
}
On 7/30/07, Luis Carrasco <[EMAIL PROTECTED]> wrote:
>
> Hi is there a way to set a value from C without setting up a primitive
> function to be called from Neko.
>
> I want set up the environment between neko and my application. And this
> requires that I update neko variables from the outside.
>
>
> Thanks!
>
> --
>
> - Luis Carlos Carrasco
>
>
--
- Luis Carlos Carrasco
--
Neko : One VM to run them all
(http://nekovm.org)