[perl #121940] [@LARRY] say True but False # should be 'True' (advent2010-day19)

2016-11-26 Thread Zoffix Znet via RT
On Thu, 11 Aug 2016 06:14:52 -0700, sml...@gmail.com wrote: > You're right, that one *is* inconsistent with `True but False`. > > `$bool1 but $bool2` and `$int1 but $int2` should either both override > the value, or both *not* override the value. There's actually no inconsistency and the infix:

[perl #130187] [BUG][NATIVECALL][RFC] CArray cannot allocate contiguous memory

2016-11-26 Thread via RT
# New Ticket Created by Itsuki Toyota # Please include the string: [perl #130187] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130187 > See the following codes and results: *** codes *** * t/05-pointer.c #include #in

[perl #128546] [BUG] [UNI] Version comparison confused by digit with diacritics

2016-11-26 Thread Zoffix Znet via RT
A fair point. Re-opening with the intent to make synthetic digits match the same way as punctuation. I tried a few implementations, like changing the .comb to .comb(/:r ‘*’ || [(\d) ]+ || <.alpha>+ /) But all of them ended up being 10 to 64 times slower than just regular \d+. By defin

[perl #130186] Match object inside .comb is weird (‘789’.comb(/ . {say $/} /))

2016-11-26 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130186] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130186 > *Code:* dd ‘789’.comb(/ . {say $/} /)' *Result:* 「7」 「7」 「7」 slip()

[perl #130184] [BUG] All digit words in angle-bracket word quoting don't come out the same as the literally quoted word

2016-11-26 Thread Zoffix Znet via RT
On Sat, 26 Nov 2016 15:47:38 -0800, comdog wrote: > Adapted from the Stackoverflow answer at: > http://stackoverflow.com/a/40824226/2766176 > > I'm using moar (2016.10) on macosx (10.10.5) darwin (14.5.0) (These > variables are quite nice!) > > This came out of a problem I had with set membership

[perl #130185] Fwd: Should Perl 6 run MAIN if the file is required?

2016-11-26 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #130185] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130185 > Here's a short Perl 6 program that declare a `MAIN` subroutine. I should only see output

[perl #130184] [BUG] All digit words in angle-bracket word quoting don't come out the same as the literally quoted word

2016-11-26 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #130184] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130184 > Adapted from the Stackoverflow answer at: http://stackoverflow.com/a/40824226/2766176 I

Re: [perl #128546] [BUG] [UNI] Version comparison confused by digit with diacritics

2016-11-26 Thread Zefram
Zoffix Znet via RT wrote: >Thanks for the report, however, there's no bug here, as strings are valid >version parts, which is what the diaeresis causes the part to parse as >(as opposed to numbers). I'm aware that non-numeric parts are permitted, but the behaviour here doesn't seem to be consisten

[perl #130183] Parametric types and recursion lead to attribute or accessor confusion

2016-11-26 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #130183] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130183 > In this small example, I get an exception where I don't expect one: role LL[::T] { ha

[perl #130182] [LTA] Using True in a sub signature makes no sense but there is no warning (sub foo(True) {})

2016-11-26 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130182] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130182 > *Code:* sub foo(True) { say ‘ok’ }; foo(False) *Result:* ok The re

quicksort tutorial in F# - a template?

2016-11-26 Thread Andy Bach
Just read this: https://www.codeproject.com/articles/1091356/the-elegant-code-i-wish-i-can-write-in-csharp Which is a very nice overview of F# and functional programming - it starts w/ this // F# Quicksortlet rec quicksort = function | [] -> [] | x :: xs -> let smaller = List.

[perl #130181] [BUG] .WHAT.:: leaks internal exception

2016-11-26 Thread via RT
# New Ticket Created by Tobias Leich # Please include the string: [perl #130181] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130181 > say Int.new.WHAT.:: rakudo-moar 7c5ea3: OUTPUT«===SORRY!===␤MVMArray: Can't pop from an

[perl #128546] [BUG] [UNI] Version comparison confused by digit with diacritics

2016-11-26 Thread Zoffix Znet via RT
On Tue, 05 Jul 2016 09:52:46 -0700, zef...@fysh.org wrote: > The Version class accepts numeric components that contain digits with > diacritics, and faithfully preserves the grapheme string just as it > preserves non-ASCII digits. But these components then behave badly > in comparisons: > > > Ver

[perl #128395] [BUG] -0 breaks value identity comparison

2016-11-26 Thread Zoffix Znet via RT
On Mon, 13 Jun 2016 03:20:34 -0700, zef...@fysh.org wrote: > > my $a = 0.Num > 0 > > my $b = -$a > -0 > > $a > 0 > > $b > -0 > > $a.WHICH > Num|0 > > $b.WHICH > Num|-0 > > atan2($a, -1) > 3.14159265358979 > > atan2($b, -1) > -3.14159265358979 > > $a === $b > True > > These two values, the two floa