lua-users home
lua-l archive

Re: Metatable Lookup Rules

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


On 25 September 2017 at 15:14, Viacheslav Usov <via.usov@gmail.com> wrote:
> as an additional argument. Then, unless I am mistaken, if F returns a
> non-nil value, both T and M will get a new key assigned with that value.
Lua won't modify either table by itself, it's up to the function F to
do it if you want.
-- 
Javier

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