[perl #74352] [BUG] Strange type object-related error when doing a junction in a subtype with the same nominal check several times in Rakudo

2010-04-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74352] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74352 > rakudo: subset A of Array; subset B of A; subset C of A; subset D of A where B & C; say

[perl #74348] [BUG] LTA error message when a where block fails in a subtype during single dispatch in Rakudo

2010-04-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74348] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74348 > rakudo: subset Foo of Array where { .elems == 5 }; sub bar(Foo $_) {}; bar([1,2,3]) ra

[perl #74276] names starting with 'q' confuse Rakudo, instead of being parsed as sub names

2010-04-13 Thread SundaraRaman via RT
On Tue Apr 13 06:18:16 2010, masak wrote: > std: subset Quad of Any; sub classify($_) { when Quad {}; when > Quad {} } > std 30383: OUTPUT«ok 00:01 110m␤» > rakudo: subset Quad of Any; sub classify($_) { when Quad {}; > when Quad {} }; say 'alive' > rakudo cb4521: OUTPUT«Unable to parse blockoi

[perl #74350] [BUG] Using the all() junction constructor together with smartmatching doesn't work in Rakudo

2010-04-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74350] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74350 > rakudo: class G {}; subset A of Array where { all(|$_) ~~ G }; say [G.new, G.new, G.new

[perl #74344] Marking an array as slurpy makes it unaccessible by name

2010-04-13 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #74344] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74344 > 17:23 <@moritz_> rakudo: proto sub a(*...@val) { say @val.perl }; a(:val) 17:23 < p6eval>

Re: [perl #74334] [PATCH] Fix Parcel.sort (fixes the very first example in http://cloud.github.com/downloads/perl6/book/book-2010-04.pdf) and Hash.sort

2010-04-13 Thread Kyle Hasselbacher
On Tue, Apr 13, 2010 at 4:51 PM, Mark J. Reed wrote: > Seems like both NaN <= $x and NaN >= $x should return false for any > $x, which makes me think NaN <=> $x should maybe return something > undefined? That reminds me of a bug I wrote in C++ one time. I had overloaded comparisons in a way that

Re: [perl #74334] [PATCH] Fix Parcel.sort (fixes the very first example in http://cloud.github.com/downloads/perl6/book/book-2010-04.pdf) and Hash.sort

2010-04-13 Thread Mark J. Reed
Seems like both NaN <= $x and NaN >= $x should return false for any $x, which makes me think NaN <=> $x should maybe return something undefined? On Tuesday, April 13, 2010, Geoffrey Broadwell wrote: > On Tue, 2010-04-13 at 05:42 -0700, Ira Byerly wrote: >> Note that one test in t/spec/S32-list/so

Re: Temporal.pod truncate

2010-04-13 Thread yary
=== indeed truncating to any day of the week can be implemented by user trivially by adding/subtracting a constant number of days from the Monday returned. No, it's not a constant. $sun = DateTime.new('2010-04-11').trunc( :to ) # 2010-04-11 $mon = DateTime.new('2010-04-11').trunc(

Re: Temporal.pod truncate

2010-04-13 Thread Mark J. Reed
On Tue, Apr 13, 2010 at 12:35 PM, John Williams wrote: > >> Asking for the latest prior Sunday or any other weekday is a useful >> function, but it doesn't really have anything to do with 'truncation'. >> > > Asking for the first of the month is truncating to an even more arbitrary > interval tha

[perl #74326] [BUG] LTA error message when passing the invocant parameter as a named argument in Rakudo

2010-04-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74326] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74326 > rakudo: class A { method foo($bar:) { say $bar.WHAT } }; A.new.foo( :bar(42) ) rakudo

Re: Temporal.pod truncate

2010-04-13 Thread John Williams
On Thu, 8 Apr 2010, Carl Mäsak wrote: Among the cons: we lose the nice symmetry wherein :to clears all values smaller than days, :to clears all values smaller than years, etc. :to is still pretty straightforward, but it's a subtle category error. Of course. What I really want is for weeks to

Re: [perl #74334] [PATCH] Fix Parcel.sort (fixes the very first example in http://cloud.github.com/downloads/perl6/book/book-2010-04.pdf) and Hash.sort

2010-04-13 Thread Geoffrey Broadwell
On Tue, 2010-04-13 at 05:42 -0700, Ira Byerly wrote: > Note that one test in t/spec/S32-list/sort.t fails... > > not ok 4 - array of mixed numbers including Inf/NaN > # got: [-Inf, -61/20, -1e-07, 1/10, 11/10, 2, 42, Inf, NaN] > # expected: [NaN, -Inf, -61/20, -1e-07, 1/10, 11/10,

[perl #74334] [PATCH] Fix Parcel.sort (fixes the very first example in http://cloud.github.com/downloads/perl6/book/book-2010-04.pdf) and Hash.sort

2010-04-13 Thread via RT
# New Ticket Created by Ira Byerly # Please include the string: [perl #74334] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74334 > Hello, I noticed that certain uses of sort no longer work in Rakudo after the ng merge in

[perl #74338] [BUG] Rakudo particularly dislikes the word 'Quad'

2010-04-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74338] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74338 > std: subset Quad of Any; sub classify($_) { when Quad {}; when Quad {} } std 30383: OU

[perl #74336] [BUG] List assignment to an array inside a signature produces a double array in Rakudo

2010-04-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74336] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74336 > rakudo: my @a = 1,2,3; my (@c) = @a; say @c.perl rakudo cb4521: OUTPUT«[[1, 2, 3]]␤»

Re: Documentaion Details (was: underscores vs hyphens)

2010-04-13 Thread Shawn H Corey
Matthew Walton wrote: On Mon, Apr 12, 2010 at 1:22 PM, Shawn H Corey wrote: So, I'll ask again: Where in the official documentation does it state that Perl 6 names are case sensitive? I think it's more important to ask where it says that they aren't. 1) Perl 5 is case sensitive, and the ori