lua-users home
lua-l archive

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


> The main point is the following:
> If all variables are local by default, then you have to declare all functions
> as global. 

The system I thought was ideal for a while (and still would prefer but can
live without since setglobal can patch in most of the functionality) is to
have all globals be read-only unless access is declared via the global
keyword and creation of variables default to the current scope (ie. be local
inside of functions).  No special cases, or weird rules.

Russ