lua-users home
lua-l archive

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


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

Good question!  I'd pick __call personally. Supporting both leads to
'subtleties' as Bjarne Stroustrup once said about a proposed C++
feature.