lua-users home
lua-l archive

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


Doug Rogers wrote:

> IMO there are two problems:
>   (1) 2^31 should not become a negative number.
> ... The 5.1 LRM says that 'Exponentiation works for any exponent.'
> (http://www.lua.org/manual/5.1/manual.html#2.5.1), but doesn't mention
> this boundary condition. I see how it happens but I think it should be a
> positive number.

I apologize. This has nothing to do with exponentiation and everything
to do with table indexing.

Still, 2^31 as a positive number should not result in -2^31 when used as
a key.

Doug

-- 
Innovative Concepts, Inc. www.innocon.com 703-893-2007 x220