lua-users home
lua-l archive

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


On Aug 20, 2015 6:05 PM, "Roberto Ierusalimschy" <roberto@inf.puc-rio.br> wrote:
> 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.

That would be excellent. I find it difficult to find much real use for light userdata with only a single global metatable.

> (We could even gain individual metatables for numbers :-)

So different metatable for 4 than for 5? That would be... interesting.