lua-users home
lua-l archive

Re: Inheritance of metamethods in idiomatic Lua OOP--not as slick as one would expect

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


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

AltStyle によって変換されたページ (->オリジナル) /