[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Global access control
- From: David Jeske <jeske@...>
- Date: Sun, 28 Dec 1997 11:19:19 -0800
I like solution, and it's my opinion that it would be a worthwhile
addition to standard Lua.
On Sun, Dec 28, 1997 at 04:06:56PM -0200, firstname.lastname@example.org wrote:
> Is there any news as to what (if any) strategy might be adopted
> officailly by Lua to control access to globals? Having the option of
> requiring global access declarations would make Lua much more robust.
> I've already written something like
> function example(x)
> local w,y
> global z,q
> print(g) -- error
> In standard mode lua just ignores the global list, so this code works in
> either mode ($globals or $noglobals).
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + email@example.com