[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A guide to building Lua modules
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 16 Apr 2014 08:17:35 +0200
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...