[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: A proposal for faster userdata type checking
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Thu, 28 Feb 2008 17:40:04 -0500
Alex Davies wrote:
> Does anyone else think it would be nice to simply have a byte tag
> stored with each userdata? Couldn't be quicker to check, and it'd
> have the added benefit of allowing custom metatables per userdata
> object. (Only useful in a few cases, but still).
You can do it, add a byte at the beginning or end of the userdata. I
don't see why it would need to be outside of the userdata.