[Date Prev][Date Next][Thread Prev][Thread Next]
- 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
On Sat, Mar 28, 2020 at 7:28 AM Kalafut, Bennett
> 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.