[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Hex constants (idle question)
- From: Enrico Colombini <erix@...>
- Date: Thu, 11 Dec 2003 15:23:56 +0100
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.