Hi I am coding directly in Neko for scripting embedding it into a C DLL and
loading the DLL into C#.

I want to have a global variable in my neko script and be able to retrieve
the value from any function i call. Aparently every time i call it from
another function the previous modification is lost.


var x = 0;

$exports.f = function()
{
   x = x + 1;
}

$exports.a = function()
{
   return x;
}

I am getting 0 in function a after i have called function f


--

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

Reply via email to