lua-users home
lua-l archive

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


On Tue, 01 Feb 2005 12:23:20 GMT, Andy Stark
<astark@blackpoolsixth.ac.uk> wrote:
> Currently, the error message strings are scattered throughout the Lua code
> wherever the error report routine is called. A further refinement to the
> error numbering idea would be to extract all the messages out into their
> own source file. 

I very strongly second this idea. It solves quite a few things in one
swell foop:

* Localization becomes less of a matter of hunting through the code
for hidden string literals.

* For people wishing to squeeze every possible byte out of their
library, this file could be replaced with a stub.

* Numeric identifiers--or whatever--would be easy to add, depending on
an individual user's needs.

Ben