[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Inheritance of metamethods in idiomatic Lua OOP--not as slick as one would expect
- From: Francisco Olarte <folarte@...>
- Date: Sat, 28 Mar 2020 09:07:44 +0100
Bennet:
On Sat, Mar 28, 2020 at 7:28 AM Kalafut, Bennett
<bennett.kalafut@thermofisher.com> wrote:
> We (Lua users at Thermo-Fisher) were surprised recently to find that the __index metamethod of the metatable’s metatable isn’t used when looking for things like __newindex metamethods.
Why were you surprised? The FM says "Lua queries metamethods in
metatables using a raw access ".
I see you may have liked it other way, but IMO this part is clearly defined.
FOS