Skip to main content

Module tagmethods

Module tagmethods 

Source
Expand description

Tag methods (metamethods) — ported from ltm.c / ltm.h.

Every metamethod name (__index, __add, …) is interned on GlobalState during init(). Lookup helpers (get_tm, get_tm_by_obj) return LuaValue::Nil when no metamethod is present; callers check with value.is_nil() (the notm macro in C).