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

Owner: Nobody
Requestors: brad <b2gills [at] gmail.com>
Cc:
AdminCc:

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



Subject: Mix.roll doesn't work with fractional weights
Download (untitled) / with headers
text/plain 309b
Show quoted text
> Mix( 'a' => 0.3 ).roll
Type check failed in binding; expected Int but got Rat (0.3) in block <unit> at <unknown file> line 1 This worked prior to `Add R:Q.MIX-ROLL, make Mix.roll() about 2.5x as fast`[1] [1] https://github.com/rakudo/rakudo/commit/a2602b9cee60f746b6012c87c146d68cb79b4bed
To: "Brad Gilbert (via RT)" <perl6-bugs-followup [...] perl.org>
Date: Mon, 7 Aug 2017 22:09:23 +0200
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Subject: Re: [perl #131855] Mix.roll doesn't work with fractional weights
Download (untitled) / with headers
text/plain 724b
Oops. Caught by a copy-pasto. Fixed with a91ad2da854831a7a38c1d , tests needed. Show quoted text
> On 7 Aug 2017, at 20:59, Brad Gilbert (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Brad Gilbert > # Please include the string: [perl #131855] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=131855 > > > >
>> Mix( 'a' => 0.3 ).roll
> > Type check failed in binding; expected Int but got Rat (0.3) > in block <unit> at <unknown file> line 1 > > This worked prior to `Add R:Q.MIX-ROLL, make Mix.roll() about 2.5x as fast`[1] > > > [1] https://github.com/rakudo/rakudo/commit/a2602b9cee60f746b6012c87c146d68cb79b4bed


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