lua-users home
lua-l archive

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


> > By the way, I was surprised by the result of
> >
> > return '-0x1' + 0

Do no use negative hexadecimal constants. Try this instead.
	return -'0x1' + 0

Perhaps the manual should say "Lua also accepts UNSIGNED integer
hexadecimal constants"... It does sau something like that in the
explanation of tonumber.

--lhf