lua-users home
lua-l archive

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


> I have to ask: why are the semantics different?  For globals the tag of the
> old value is used for tag method lookup, and only tables and userdata are
> supported.  For tables the tag of the table is used, and all types are
> supported.  Now that the globals are in a normal table, what is the point of
> having two sets of semantics?  In fact, since the table semantics are a
> superset of the global semantics, they could be used to emulate the global
> semantics in case that is still desired.

I have to agree.  set/getglobal tag methods should be removed just like
foreachvar and all the other *global functions.  They are all just special
cases of the appropriate table functions.

Ciao ET.