lua-users home
lua-l archive

Re: Lua 5 and tags

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


Jamie Webb wrote:
>
> I'd like to add that adding an array part to userdatas would also
> provide fast typing:
Hmm... that gets me back to the old idea of merging userdata and
tables: give every table an additional void* field and remove the
userdata type completely *g*
> put a unique light userdata at some known index.
> And indeed, if you could access that array using only the userdata
> pointer, a userdata could serve as a module registry: just get at it
> using a C global variable.
Hmm, sounds dangerous and not really handy...
Ciao, ET.

AltStyle によって変換されたページ (->オリジナル) /