Well spotted, Gianni!

user@mbook:~$ raku -e 'my int $x = 2⁶³-1;say ++$x;'
-9223372036854775808
user@mbook:~$ raku --version
Welcome to 𝐑𝐚𝐤𝐮𝐝𝐨™ v2020.10.
Implementing the 𝐑𝐚𝐤𝐮™ programming language v6.d.
Built on MoarVM version 2020.10.


On Tue, May 25, 2021 at 8:38 AM Gianni Ceccarelli <dak...@thenautilus.net>
wrote:

> On Tue, 25 May 2021 15:16:03 +0000
> Andy Bach <andy_b...@wiwb.uscourts.gov> wrote:
>
> > > However I had to use "Int" instead of "int":
> > Ah, "int" is the "lower" level, native integer and "Int" is the raku.
> > An "int" is immutable or something?
>
> It's a bug in the REPL. The example from the documentation works when
> fed to the compiler directly::
>
>   $ raku -e 'my int $x = 2⁶³-1;say ++$x;'
>   -9223372036854775808
>
> --
>         Dakkar - <Mobilis in mobile>
>         GPG public key fingerprint = A071 E618 DD2C 5901 9574
>                                      6FE2 40EA 9883 7519 3F88
>                             key id = 0x75193F88
>
>

Reply via email to