lua-users home
lua-l archive

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


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.