[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5 getglobals
- From: "Peter Hill" <corwin@...>
- Date: Sat, 22 Feb 2003 00:32:00 +0800
Why does "setglobals" not work on C-functions? Is this deliberate (seems
unlikely) or due to some implementation problem?
----
Also, in Lua4 one had the "globals" function:
o = globals(n)
which combined both getting & setting of globals
o = globals()
globals(n)
Why does Lua5 not follow a similar naming pattern of "globals" with
o = globals(MyFunc, n)
combining both getting & setting of globals
o = globals(MyFunc)
globals(MyFunc, n)
instead of the new "getglobals" and "setglobals" functions
o = getglobals(MyFunc)
setglobals(MyFunc, n)
?
*quizically*
Peter Hill.