Re: [perl #128819] [BUG] Num.WHICH doesn't discriminate enough [Request: ET-9769 is created]
Thank you for your email request. Your request ID is I-1544230 DCU Home Branches Branch/ATM Locator Contact Our Privacy Policy protects your privacy and we will never sell your name or email address. Federally insured by NCUA. DCU is an Equal Housing Lender. Please do not reply to this email. For questions or additional information, please email d...@dcu.org. 220 Donald Lynch Boulevard, PO Box 9130, Marlborough, MA 01752-9130 508.263.6700 • 800.328.8797 ABA Routing Number: 211391825NMLS#: 466914 © Digital Federal Credit Union
Re: [perl #128819] [BUG] Num.WHICH doesn't discriminate enough [Request: ET-9768 is created]
Thank you for your email request. Your request ID is I-1544229 DCU Home Branches Branch/ATM Locator Contact Our Privacy Policy protects your privacy and we will never sell your name or email address. Federally insured by NCUA. DCU is an Equal Housing Lender. Please do not reply to this email. For questions or additional information, please email d...@dcu.org. 220 Donald Lynch Boulevard, PO Box 9130, Marlborough, MA 01752-9130 508.263.6700 • 800.328.8797 ABA Routing Number: 211391825NMLS#: 466914 © Digital Federal Credit Union
[perl #128819] [BUG] Num.WHICH doesn't discriminate enough
On Tue, 02 Aug 2016 10:44:50 -0700, zef...@fysh.org wrote: > > my $a = 1180591620717411303424e0 > 1.18059162071741e+21 > > my $b = 1180591620717409992704e0 > 1.18059162071741e+21 > > $a.Int > 1180591620717411303424 > > $b.Int > 1180591620717409992704 > > $a == $b > False > > $a === $b > False > > $a.WHICH > Num|1.18059162071741e+21 > > $b.WHICH > Num|1.18059162071741e+21 > > $a.WHICH eq $b.WHICH > True > > These are distinct Num values, as seen by .Int, ==, and ===. But .WHICH > is erroneously saying that they're the same. .WHICH should show distinct > identities for these distinct values. > > -zefram Thank you for the report. This is now fixed. Fix: https://github.com/MoarVM/MoarVM/commit/067c0594103a025 https://github.com/MoarVM/MoarVM/commit/8841c4241b4faa8 https://github.com/MoarVM/MoarVM/commit/af2eb8a7f7d4344 https://github.com/MoarVM/MoarVM/commit/4d3fc2818d0032b https://github.com/rakudo/rakudo/commit/8422d7b4e23678b https://github.com/rakudo/rakudo/commit/a2a2a745c4242d1 Test: https://github.com/perl6/roast/commit/3f0174e45563d641e
[perl #128819] [BUG] Num.WHICH doesn't discriminate enough
On Tue, 02 Aug 2016 10:44:50 -0700, zef...@fysh.org wrote: > > my $a = 1180591620717411303424e0 > 1.18059162071741e+21 > > my $b = 1180591620717409992704e0 > 1.18059162071741e+21 > > $a.Int > 1180591620717411303424 > > $b.Int > 1180591620717409992704 > > $a == $b > False > > $a === $b > False > > $a.WHICH > Num|1.18059162071741e+21 > > $b.WHICH > Num|1.18059162071741e+21 > > $a.WHICH eq $b.WHICH > True > > These are distinct Num values, as seen by .Int, ==, and ===. But .WHICH > is erroneously saying that they're the same. .WHICH should show distinct > identities for these distinct values. > > -zefram Thank you for the report. This is now fixed. Fix: https://github.com/MoarVM/MoarVM/commit/067c0594103a025 https://github.com/MoarVM/MoarVM/commit/8841c4241b4faa8 https://github.com/MoarVM/MoarVM/commit/af2eb8a7f7d4344 https://github.com/MoarVM/MoarVM/commit/4d3fc2818d0032b https://github.com/rakudo/rakudo/commit/8422d7b4e23678b https://github.com/rakudo/rakudo/commit/a2a2a745c4242d1 Test: https://github.com/perl6/roast/commit/3f0174e45563d641e
Re: [perl #128819] [BUG] Num.WHICH doesn't discriminate enough
Additional: the same problem arises with Complex.WHICH, in cases where the real or imaginary parts suffer this problem as Nums. -zefram
[perl #128819] [BUG] Num.WHICH doesn't discriminate enough
# New Ticket Created by Zefram # Please include the string: [perl #128819] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128819 > > my $a = 1180591620717411303424e0 1.18059162071741e+21 > my $b = 1180591620717409992704e0 1.18059162071741e+21 > $a.Int 1180591620717411303424 > $b.Int 1180591620717409992704 > $a == $b False > $a === $b False > $a.WHICH Num|1.18059162071741e+21 > $b.WHICH Num|1.18059162071741e+21 > $a.WHICH eq $b.WHICH True These are distinct Num values, as seen by .Int, ==, and ===. But .WHICH is erroneously saying that they're the same. .WHICH should show distinct identities for these distinct values. -zefram