lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Cool stuff.  I've built alternate Luas too, though not as modified as yours.

The main thing I did was to make a 'global' keyword and make Lua default to
creating locals inside a function, of course read access to globals was
still there by default (in one version just for global functions):

b = 10
c = 1
function test(x) 
global c;
    b = "this does not change the global";
    c = "but this does";
    print(10); -- this uses the read access to globals
end

--Russ