On Mon Apr 13 16:42:11 2015, grond...@yahoo.fr wrote: > Hello > > $ perl6 -e 'say my uint32 $ = 2**32;' > 4294967296 > $ perl6 -e 'say my uint32 $ = 2**64;' > 0 > $ perl6 -e 'say my uint32 $ = 2**63;' > -9223372036854775808 > $ perl6 -e 'say my uint32 $ = 2**62;' > 4611686018427387904 > > $ perl6 --version > This is perl6 version 2015.03-245-g0b1e4f1 built on MoarVM version > 2015.03-102-g3f29518 > > My machine is a i686 (32bits) running GNU/Debian Sid.
We didn't really implement unsigned/sized types for lexicals properly until recently. I've now fleshed out that support a good bit, and uint8, uint16, and uint32 are in much better shape. I've added tests in S02-types/native.t. I'd like to do more exhaustive tests, as well as sort out various issues around uint64, but have used all the time I'm likely to get on this topic ahead of the xmas release. So, we'll settle for the improvements so far, knock this off the xmas list, but leave it open for later review.