[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Getting metatable's name.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 28 Feb 2021 21:54:37 -0300
> 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.