[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
**Subject**: **Re: Why hexa notation for numbers not supported?**
**From**: lhf@... (Luiz Henrique de Figueiredo)
**Date**: Thu, 29 Oct 1998 08:10:29 -0200 (EDT)

>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