lua-users home
lua-l archive

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


On Tue, Apr 15, 2014 at 9:51 PM, Tom N Harris <telliamed@whoopdedo.org> wrote:
> Or get rid of the metatable and tell everyone to use the `string` functions
> directly.

Which would be a backwards step, IMHO.  String methods are very
convenient (although a _little_ slower than localized functions).  In
any case,  the string table is global and people can patch it anyway -
the metatable just has __index=string.

Paranoid people can always give strings a metatable which points to
their own protected copy of string...