To be honest I am looking at B4 because I hoped it wouldn't have the same 32bit problems that Xojo has (and I'm not talking about the inherent phenomen of 32bit integer overflows, but how to deal with it)..
The problem is that 32bit integer overflows have caused planes to crash - so they really need to be taken seriously.
The following table lists the largest whole number that can be **accurately** represented by the different numeric types:
[Early PCs had a mathematical co-processor that sped up floating point calculations - and programmers often used Doubles to avoid 32bit integer overflows on 32bit systems, and without any real speed penalties.]
Doubles and 64bit Integers have MUCH larger ranges of Integers that they can accurately represent than 32bit Integers.
Nowadays 2 Billion is not a big number anymore, so my (personal) opinion is that everything should use or at least allow 64bit Integers where "Integers" are expected - even on 32bit systems.
1) "Backwards Compatibility" in this context means keeping 32bit Integer overflows around, something that I don't find acceptable in Xojo or B4, especially as a 32bit system can deal with 64bit integers just fine. Is it some work? Yes. Can it be done? Yes. Should it be done? Definitely.
Funnily enough the suggested workaround for 32bit integer overflows is to turn it into a double … which kind of negates the argument that you can't do that because of backwards compatibility …
2) Performance? That's an argument that sounds sensible but that stopped being an argument about 15-20 years ago. Even a 10 year old computer is so fast that you won't notice whether you use 64bit integers or Doubles instead of 32bit integers (and as a Molecular Biologist I used to routinely analyse multi-gigabyte sized files of data on my 2010 Mac Pro).
3) the doubles
accurately represent those integers - no problem with comparisons
4) That might be an argument. But I would argue that even on 32bit systems those objects should accept 64bit Integers. Sure, that's work - but with the current situation you might get different results on your 64bit system at home and the 32bit system at work … and that is just crazy.
Security and reliability should be the prime concern. If you can't trust the computer to do Maths correctly …?