[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table.insert and negative numbers
- From: Doug Rogers <rogers@...>
- Date: Wed, 09 Apr 2008 12:06:43 -0400
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