[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String access & metamethods
- From: "Javier Guerra" <javier@...>
- Date: Thu, 13 Dec 2007 12:25:14 -0500
On 12/13/07, Rici Lake <lua@ricilake.net> wrote:
I don't see the advantage of using globals, though. Stashing the
localizations in a table called L (with a __call metamethod) does not
use more space, and avoids namespace pollution.
why the __call ? i find
print(L.DidNotWork)
far more readable and less error-prone than
print(L"Operation did not succeed")
--
Javier