Re: [perl #77218] Using Perl6 PDF: Some subroutine examples don't work when declared before call

2010-08-14 Thread Patrick R. Michaud
On Sat, Aug 14, 2010 at 10:55:57AM -0700, James Keenan wrote: > FAILS: > > use v6; > > sub orderbeer($type, $pints) { > say ($pints == 1 ?? 'A pint' !! "$pints pints") ~ " of $type, > please."; > } > > orderbeer('Hobgoblin', 1); The problem here is that Rakudo is mis-interpreting the "or

[perl #77218] Using Perl6 PDF: Some subroutine examples don't work when declared before call

2010-08-14 Thread via RT
# New Ticket Created by James Keenan # Please include the string: [perl #77218] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77218 > The New York City Rakudo Star study group is working its way through the Using Perl PD

[perl #77220] Rakudo Star: Using Perl6 PDF: Chap 4: misleading code example

2010-08-14 Thread via RT
# New Ticket Created by James Keenan # Please include the string: [perl #77220] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77220 > The New York City Rakudo Star study group is working its way through the Using Perl PD

[perl #77224] [BUG] Rakudo allows the declaration of a sub with the same name as an already declared class, STD doesn't

2010-08-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #77224] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77224 > std: class A {}; sub A {} std 31912: OUTPUT«===SORRY!===␤Illegal red

[perl #77134] tests available

2010-08-14 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S03-smartmatch/any-any.t commit 134e51f5b54d8effd526e1d024afa7f5f149e618 Author: moritz Date: Sat Aug 14 17:43:18 2010 + [t/spec] test for RT #77134, !~~ did not set $_ to the LHS git

[perl #77214] [BUG] A 'do given' with no matching 'when' block yields the rather arbitrary value 0 in Rakudo

2010-08-14 Thread Carl Mäsak via RT
On Sat Aug 14 06:04:40 2010, masak wrote: > rakudo: my $a = "buuss"; my $b = do given $a { when "a" { > 42 ?? "foo" !! "bar" } }; say $b > rakudo 083999: OUTPUT«0␤» > :) > there. > isBEKaml++ > * masak submits rakudobug > rakudo: say do given 'x' { when 'y' {} } > rakudo 083999: OUTPUT«0␤» >

[perl #77214] [BUG] A 'do given' with no matching 'when' block yields the rather arbitrary value 0 in Rakudo

2010-08-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #77214] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77214 > rakudo: my $a = "buuss"; my $b = do given $a { when "a" { 42 ?? "foo" !! "bar" } }; say

Re: Large integers, ** and Int

2010-08-14 Thread Patrick R. Michaud
On Fri, Aug 13, 2010 at 11:08:30AM -0400, Aaron Sherman wrote: > On Thu, Aug 12, 2010 at 3:48 PM, Darren Duncan wrote: > > > > > What is the difference between Parrot bignums and gmp? Could Parrot not > > just use gmp to implement its bignums? -- Darren Duncan > > > > Parrot does use GMP. What

[perl #77208] [BUG] Closing brace does not end statement between "class C { }\n" and "module M { }"

2010-08-14 Thread via RT
# New Ticket Created by Lithos # Please include the string: [perl #77208] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77208 > Hi! A class declaration without C<;> at the end gives a confusing error when followed by a mo