Re: string.gsub accepting a callable userdata
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: string.gsub accepting a callable userdata
- From: Daurnimator <quae@...>
- Date: 2012年12月12日 11:26:33 -0500
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.