lua-users home
lua-l archive

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


2015-08-20 12:02 GMT+02:00 Dirk Laurie <dirk.laurie@gmail.com>:

> If anyone wants to try it out, the module is attached.
> Tested under 5.2.4 and 5.3.1. Does not work under 5.1.

The following information may be useful.

lobject.h, in the comments starting at line 31, gives information on
how the type tag is used. Bits 0--3 encode the main type, bits 4-5
the subtype, bit 6 whether the object is collectable. One can deduce
that in the present implementation, starting at bit 7, the rest of the type
tag is currently unused.