[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5 and tags
- From: Edgar Toernig <froese@...>
- Date: Mon, 26 Jul 2004 03:00:43 +0200
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.