You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correction, the pseudocode for index resolution is closer to:
functiongettable_event(t, k)
localvalue=rawget(t, k)
ifvalue~=nilthenreturnvalueendlocalmt=getmetatable(t)
ifmt==nilthenreturnnilendlocalindex==mt.__indexiftype(index) =='function' thenreturnindex(t, k)
elseiftype(index) =='table' thenreturnindex[k] -- note that this is a recursion!endreturnnilend
wiki: blog/oop-in-lua
https://fideo.info/wiki.lua/blog/oop-in-lua
The text was updated successfully, but these errors were encountered: