lua-users home
lua-l archive

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


I checked the archives and couldn't find the definitive answer I was
looking for.

Does lua support preprocessor constants?  I'm guessing no by the
archived notes I did see.  As a lua newbie, is there a technical reason
it's not supported?

For the record, I simply want to do the equivelent to:

#define SOME_CONSTANT       10

a = SOME_CONSTANT
b = a * 2
c = SOME_CONSTANT/2

etc.

Cheers,
Brett