lua-users home
lua-l archive

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


> 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?

I like this idea. There would be something like a 'global' table that would
be directly accessable (eg. global_table.global_var) ? In this case,
global_table would be a field of itself ? Nice recursive definition of a
global :)
I concur with your idea.

-- 
Lyrian