On Tue, 2006-01-10 at 20:08 +0100, Nicolas Cannasse wrote:
> skaller wrote:

> In Neko there is modules but they're abtract. Most of the time you only 
> deal with export tables which are objects.
> 
> // test.neko
> var x = 0; // local
> z = 0; // current module global
> $exports.y = 0; // "public" variable
> 
> Then when loaded, this module only contains "y" and the module abstract 
> type :
> 
> var m = $loader.loadmodule("test",$loader);
> $print(m.y); // 0
> $print(m.z); // null
> $print(m);

Ah, ok .. hmm .. what's a local? 

Is it in functions, z = 0 defines a global outside the function, 
whereas var x defines a symbol only in the functions current
activation record?

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


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

Reply via email to