lua-users home
lua-l archive

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


>Is it a coincidence that the enumeration returned by lua_type() matches the
>default tag numbers of each type?

No.

>Would it make sense to add this to the spec so we may rely on it?

Yes. We'll change the docs to reflect this.

Just to be clear: lua_tag returns the same values as lua_type, except for
tables and userdata that do not have default tags.
--lhf