[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] make light userdata a little bit heavier
- From: Coroutines <coroutines@...>
- Date: Tue, 22 Apr 2014 00:14:59 -0700
On Tue, Apr 22, 2014 at 12:09 AM, Philipp Janda <siffiejoe@gmx.net> wrote:
>> What I gain is the ability to verify the type safety of light userdata
>> usage on the C side
Ahah! I get what's going on ITT now. :-)
Maintain a vector of addresses that are copies of the lightuserdata
for the particular type you're checking for. Keep it sorted for
binary-searching it later. Not as light as what you're suggesting,
but it wouldn't require modifying Lua if this proposal doesn't get
accepted :>