Eugene Chernyshov a écrit : > Hi. > > I can find a way to access to global namespace from C? Could you help me?
Hi, Accessing the neko globals is a bit difficult since each "module" (.n) is isolated so several modules don't share their globals. Usually, one would fill the $exports object fields with the values/function it want to be accessible by other modules. That's actually this object that $loader.loadmodule returns. Now if you --really-- want to access globals you can watch how the Neko toplevel is doing (see neko/src/neko/Console.nml source) although that's a bit tricky since global names are not kept at runtime. Maybe extending the http://nekovm.org/doc/view/module api would help here. Best, Nicolas -- Neko : One VM to run them all (http://nekovm.org)
