lua-users home
lua-l archive

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


> Any issue if in the metatable creation code, I'm adding manually a field __name when under < 5.3 ?
>
> So the remaining of the code will be the same  whate

Just adding  __name to metatables won't have any effect if no code uses it.
In particular, see luaL_typeerror in 5.4 or typeerror in 5.3,
luaL_tolstring, and luaT_objtypename.

It'll be fine to change your lauxlib.c to handle __name, though,
because lauxlib.c is a userland library.