[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why could not aquire the metatable for the types of LUA_TNUMBER and LUA_TBOOLEAN?
- From: Dmitry Meyer <me@...>
- Date: Sat, 30 Jan 2021 10:39:01 +0300
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.