[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT 64 bit integers (was: the purpose of lightuserdata)
- From: Alexander Gladysh <agladysh@...>
- Date: Thu, 13 Jan 2011 07:36:07 +0300
On Thu, Jan 13, 2011 at 04:24, Mike Pall <mikelu-1101@mike.de> wrote:
> Vaughan McAlley wrote:
>> On 11 January 2011 23:21, Mike Pall <mikelu-1101@mike.de> wrote:
>> > LuaJIT git HEAD already has 64 bit literals and arithmetic
>> Out of curiosity, do you intend these 64-bit numbers to be "first
>> class" numbers:
>> local x = 10LL
>> local t = { [x] = "foo" }
> Well, I could. But I'm not sure I should ...
> I'm already in trouble, because I need to change the standard
> rules for comparisons. Cdata objects are a distinct type, but
> treating these as unequal to any number or not comparable would be
> rather counter-intuitive: e.g. 1LL == 1 should really return true
> and 1LL < 2 should return true, too (and not throw an error).
Mike, do you plan to implement a switch to turn this "language extension" off?
Alexander.