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, Jerome Vuarand
<jerome.vuarand@gmail.com> wrote:
> So is there any reason for the change you request besides a little
> performance improvement (not creating a closure) in an arguably
> specific use case?

I suppose that in this specific case, one usually can patch
string.gsub to behave 'consistently' with things that the user regards
as functions.

(Usually the standard Lua library functions don't tend to do
metamethod magic anyway)