lua-users home
lua-l archive

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


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.