lua-users home
lua-l archive

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




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