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: steve donovan <steve.j.donovan@...>
- Date: 2012年12月12日 15:53:45 +0200
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.