lua-users home
lua-l archive

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


On 30/01/2021 09:27, 孙世龙 sunshilong wrote:
> By default, a value has no metatable, but the
> string library sets a metatable for the string type

It clearly says that only the string type has a metatable _by default_ as it is set by the standard library, but it is possible to set metatables for numbers, booleans, etc.