lua-users home
lua-l archive

Re: __len vs __index

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


> On Aug 24, 2016, at 3:16 PM, Soni L. <fakedme@gmail.com> wrote:
> 
> Why doesn't # respect __index? Is it because the behaviour of # is implementation-defined and thus it shouldn't leak through __index?
> 
Because we have __len.
—Tim

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