lua-users home
lua-l archive

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

On Thu, Jan 13, 2011 at 04:24, Mike Pall <> wrote:
> Vaughan McAlley wrote:
>> On 11 January 2011 23:21, Mike Pall <> 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?