lua-users home
lua-l archive

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


On 12 December 2012 08:50, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> What about indexable userdata? Given a userdata, should we use __index
> or __call?
>
> -- Roberto
>

Given a table should we use __index or __call?

I feel like the __index should take precedence for a table; followed by call.
This should possibly be extended to userdata.