lua-users home
lua-l archive

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


>If I see 'global', I assume that 'global' is what is meant. What do
>you think of a name change to reflect what the function really does?

Well, setglobal does set the table that resolves global names. I think the
name is suitable, especially because it takes a function as its first arg.
So setglobal(f,t) reads "now resolve global names in f using t". But of
course tastes differ. You can always do "setenvironment=setglobals" ...
--lhf