lua-users home
lua-l archive

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


Sounds like a great idea to me --- I've wondered the same thing.

Russ

>Since the table data type is used so effectively to keep Lua simple and
>powerful, it made me wonder why use of tables wasn't extended as far as the
>global environment.  In other words why does a programmer implementing
>extensions have to treat the global environment as a special case?
>
>The solution I'm thinking about is to keep current Lua semantics intact, but
>remove all the global operations (listed below) from the language.  Then add
>just one function to get a global table value, say globaltable().