lua-users home
lua-l archive

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


>From: Mario Cardona <mario@harajuku.trc.mew.co.jp>
>
> I'm new to lua. I wonder why the C notation for
>hexadecimal numbers is not supported in lua. I wish
>it were. 

for hexadecimal numbers inside  strings, try *decimal* numbers:

	"lua\240"

for hexadecimal numbers as numbers, there's no direct support, but you try:

	a=X"A3"

where X is a *function* which is easy (if boring) to write (use gsub!)
--lhf