[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Son of Lua - Sol
- From: "Russell Y. Webb" <rw20@...>
- Date: Wed, 31 Jan 2001 00:55:43 -0800
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