lua-users home
lua-l archive

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


On Thursday 11 December 2003 15:09, Jamie Webb wrote:
> If you're not too concerned about 'polish', you could add a __index hook to
> the global table which picks up identifiers of the format HxFFFF or similar
> and returns the appropriate value. 

It's interesting to see how many different ways can be found with Lua to 
approach even the simpler problems :-)

> It would still be possible to redefine the constants locally though, 
> but it seems unlikely that anyone would... if nothing else, most 
> people use all lowercase for locals.

Usually not for functions, though.

  .Erix.