[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Global access control
- From: Stephen Shaw <srs@...>
- Date: Sun, 28 Dec 1997 14:22:04 -0800
Sorry to send this to the group, but...
Can someone help me get off this list? I have tried several times to
send the request to the server with no success...
Thanks in advance,
Srs
Srs@lucasarts.com
Stephen R. Shaw
LucasArts Entertainment Co. LLC
My views do not necessarily represent those of the company.
-----Original Message-----
From: rw20@cornell.edu [SMTP:rw20@cornell.edu]
Sent: Sunday, December 28, 1997 10:06 AM
To: Stephen Shaw
Subject: Global access control
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
$noglobals
z=10
q=45
g=54
function example(x)
local w,y
global z,q
w=x*x
print(w+x+q)
print(g) -- error
end
In standard mode lua just ignores the global list, so this code
works in
either mode ($globals or $noglobals).
Russ