[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Manual §2.4 "(even if it is valid)"?
- From: "Soni L." <fakedme@...>
- Date: Thu, 5 Oct 2017 22:52:00 -0300
On 2017-10-05 10:46 PM, ? ? wrote:
In Manual §2.4 in the description of __add metamethod:
If any operand for an addition is not a number (nor a string coercible to a number), Lua will try to call a metamethod. First, Lua will check the first operand (even if it is valid). ...
What does "(even if it is valid)" mean here?
Probably means it gets called even for things like debug.setmetatable(0,
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.