[Google Issue #1851 : http://code.google.com/haxe/issues/detail?id=1851]
by ncanna...@gmail.com, at 2013-05-24T13:33:11.000Z
It was found just before 3.0 final that multiplication between two Int can overflow on JS/PHP/Flash8 because they use doubles, so only have 52 bits precision.
Int64 was fixed accordingly but we might need again an Int32 compatibility class to allow safe multiply on all platforms.
I propose that we add both haxe.Int32 and haxe.Int64 as abstracts in 3.2, that will use either native implementation if available or emulation if not.
[Google Issue #1851 : http://code.google.com/haxe/issues/detail?id=1851] by ncanna...@gmail.com, at 2013-05-24T13:33:11.000Z It was found just before 3.0 final that multiplication between two Int can overflow on JS/PHP/Flash8 because they use doubles, so only have 52 bits precision.
Int64 was fixed accordingly but we might need again an Int32 compatibility class to allow safe multiply on all platforms.
I propose that we add both haxe.Int32 and haxe.Int64 as abstracts in 3.2, that will use either native implementation if available or emulation if not.