[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature request: userdata slice
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 20 Aug 2015 19:05:22 -0300
Maybe I am missing something, but if we want to put some extra bits in
'TValue' to good use and solve the OP problem, maybe a better idea would
be to introduce metatables for light userdata.
There would be a limit on the number of different metatables that light
userdata can have, but it would be a reasonable high limit [2^25] for
typical uses of metatables. If we adopt this limit for all metatables in
the system, we could gain some space in tables and full userdata, too.
(We could even gain individual metatables for numbers :-)
-- Roberto
- References:
- Re: Feature request: userdata slice, 云风 Cloud Wu
- Re: Feature request: userdata slice, Tim Hill
- Re: Feature request: userdata slice, Philipp Janda
- Re: Feature request: userdata slice, 云风 Cloud Wu
- Re: Feature request: userdata slice, Dirk Laurie
- Re: Feature request: userdata slice, 云风 Cloud Wu
- Re: Feature request: userdata slice, Dirk Laurie
- Re: Feature request: userdata slice, Dirk Laurie
- Re: Feature request: userdata slice, Tim Hill
- Re: Feature request: userdata slice, William Ahern