Skip Menu |
Report information
Id: 126941
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at] fysh.org
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA] very long right shift gratuitously fails
From: Zefram <zefram [...] fysh.org>
Date: Thu, 17 Dec 2015 02:36:43 +0000
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 259b
Show quoted text
> 123 +> (1 +< 64)
Cannot unbox 65 bit wide bigint into native integer This is less than awesome. The correct answer for a too-big-to-unbox right-shift distance is trivial to obtain and to represent, so this could easily return the correct answer. -zefram
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
To: "Zefram (via RT)" <perl6-bugs-followup [...] perl.org>
Date: Thu, 17 Dec 2015 11:12:08 +0100
Subject: Re: [perl #126941] [LTA] very long right shift gratuitously fails
Download (untitled) / with headers
text/plain 935b
Show quoted text
> On 17 Dec 2015, at 03:37, Zefram (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Zefram > # Please include the string: [perl #126941] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=126941 > > >
>> 123 +> (1 +< 64)
> Cannot unbox 65 bit wide bigint into native integer > > This is less than awesome. The correct answer for a too-big-to-unbox > right-shift distance is trivial to obtain and to represent, so this > could easily return the correct answer.
Made error a little more awesome in f6091476486d29c8886da . $ 6 'say 123 +< (1 +< 64)' Big integer 18446744073709551616 not yet supported on righthand side of '+<‘ operator I assume this will want to be fixed at either the NQP level, or perhaps in rakudo core. But probably not before 6.c, so felt like a better error message is the best we can do atm. Liz


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org