Re: Meditations on a Loop

2009-05-21 Thread Larry Wall
On Wed, May 20, 2009 at 07:55:55PM -0500, John M. Dlugosz wrote: > If you would be so kind, please take a look at > . I spent a couple days > on this, and besides needing it checked for correctness, found a few > issues as well as more food for

Re: Meditations on a Loop

2009-05-21 Thread Carl Mäsak
Timothy (>), John (>>): >> If you would be so kind, please take a look at >> .  I spent a couple days on >> this, and besides needing it checked for correctness, found a few issues as >> well as more food for thought. > >        John, I very much enjo

[perl #65864] Having an optional variable in the signature of a 'my' declaration makes Rakudo blow up

2009-05-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65864] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=65864 > rakudo: my (%h?) rakudo 14bba5: OUTPUT«get_pmc_keyed_str() not implemented in class 'S

[perl #65878] Rakudo shouldn't allow metaops with the same modifier twice in a row

2009-05-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65878] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=65878 > rakudo: sub infix:($a,$b) { $a ~ '-' ~ $b }; sub infix:($a,$b) { $a ~ '_' ~ $b }; say '

What is "U4X"?

2009-05-21 Thread John M. Dlugosz
Can someone post a link?

Re: What is "U4X"?

2009-05-21 Thread Leon Timmermans
On Thu, May 21, 2009 at 4:18 PM, John M. Dlugosz <2nb81l...@sneakemail.com> wrote: > Can someone post a link? http://svn.pugscode.org/pugs/docs/u4x/README Google is your friend ;-)

Re: What is "U4X"?

2009-05-21 Thread Carl Mäsak
Leon (>), John (>>): >> Can someone post a link? > > http://svn.pugscode.org/pugs/docs/u4x/README It might also be informative to refer to the blog post that precipitated the project: Pretending that Envy is one of the Perl virtues The second section o

Re: [perl #65878] Rakudo shouldn't allow metaops with the same modifier twice in a row

2009-05-21 Thread Larry Wall
On Thu, May 21, 2009 at 02:56:23AM -0700, Carl Mäsak wrote: : # New Ticket Created by "Carl Mäsak" : # Please include the string: [perl #65878] : # in the subject line of all future correspondence about this issue. : # http://rt.perl.org/rt3/Ticket/Display.html?id=65878 > : : : rakudo: sub i

Rakudo Perl 6 development release #17 ("Stockholm")

2009-05-21 Thread Patrick R. Michaud
On behalf of the Rakudo development team, I'm pleased to announce the May 2009 development release of Rakudo Perl #17 "Stockholm". Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the May 2009 release is available from http://github.com/rakudo/rakudo/download

Re: Rakudo Perl 6 development release #17 ("Stockholm")

2009-05-21 Thread François Perrad
2009/5/21 Patrick R. Michaud : > On behalf of the Rakudo development team, I'm pleased to announce > the May 2009 development release of Rakudo Perl #17 "Stockholm". > Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. > The tarball for the May 2009 release is available from >

[perl #65904] Providing a sub signature with an invocant makes Rakudo emit an imcc syntax error

2009-05-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65904] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=65904 > rakudo: sub foo($bar:) {}; rakudo 79d0b9: OUTPUT«error:imcc:syntax error, unexpected I

[perl #65900] 'my ($a is readonly) = 5' should be allowed, but assigning to it afterward should be disallowed; '(my $a is readonly) = 5' should also be disallowed... in Rakudo

2009-05-21 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #65900] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=65900 > rakudo: my ($a is readonly) = 5; say $a; $a = 42; say $a rakudo 79d0b9: OUTPUT«5␤42␤»

Re: [perl #65878] Rakudo shouldn't allow metaops with the same modifier twice in a row

2009-05-21 Thread Gianni Ceccarelli
On 2009-05-21 Larry Wall wrote: > : rakudo: sub infix:($a,$b) { $a ~ '-' ~ $b }; sub > : infix:($a,$b) { $a ~ '_' ~ $b }; say 'x' R 'y'; say 'x' RR 'y'; > : rakudo e6b463: OUTPUT«x-y␤x_y␤» > : now, apart from "don't do that", what should happen? > : [snip] > : jnthn: about the meta-operator co

Re: Meditations on a Loop

2009-05-21 Thread Daniel Ruoso
Em Qua, 2009-05-20 às 20:58 -0500, Patrick R. Michaud escreveu: > On Wed, May 20, 2009 at 07:55:55PM -0500, John M. Dlugosz wrote: > > If you would be so kind, please take a look at > > . > "The reason this [.prime] works is because the method

Re: Meditations on a Loop

2009-05-21 Thread Daniel Ruoso
Em Qua, 2009-05-20 às 19:55 -0500, John M. Dlugosz escreveu: > If you would be so kind, please take a look at > . I spent a couple days > on this, and besides needing it checked for correctness, found a few > issues as well as more food for though

Re: Meditations on a Loop

2009-05-21 Thread Daniel Ruoso
Em Qui, 2009-05-21 às 21:33 -0300, Daniel Ruoso escreveu: > my @x = map { $_ * 2 for 1,2,3 }, 1,2,3; > say @x[0]; # 1; > say @x[0;0]; # ERROR > say @x[1]; # 1; > say @x[1;0]; # ERROR er... there should be a 2 as output of the fourth line there... daniel

[perl #65878] Rakudo shouldn't allow metaops with the same modifier twice in a row

2009-05-21 Thread Carl Mäsak via RT
Larry (>): > I don't see a bug here. First, there's no prohibition on multiple > similar metas anymore. But with regard to the example above, metas > are parsed as their own tokens, and the infix: is longer than > the meta R, so should take precedence under LTM. We used to try > to form tokens o

Re: Meditations on a Loop

2009-05-21 Thread John M. Dlugosz
What is "Userdocs for Christmas"? Someone have a link? Carl Mäsak cmasak-at-gmail.com |Perl 6| wrote: Timothy (>), John (>>): If you would be so kind, please take a look at . I spent a couple days on this, and besides needing it checked for

Re: Meditations on a Loop

2009-05-21 Thread Carl Mäsak
John (>): > What is "Userdocs for Christmas"?  Someone have a link? So, "Userdocs for Christmas", also known as U4X, is an effort to create both comprehensive, consistent user documentation, and the means to access this documentation efficiently and easily. You asked about U4X the other day, whic

Re: Meditations on a Loop

2009-05-21 Thread John M. Dlugosz
Larry Wall larry-at-wall.org |Perl 6| wrote: And since the "when" modifier counts as a conditional, you can rewrite grep Dog, @mammals as $_ when Dog for @mammals; So perhaps will see a lot of subtypes used this way: subset Odd if Int where { $_ % 2 }; @evens = ($_ * 2 whe

Re: Meditations on a Loop

2009-05-21 Thread Jon Lang
On Thu, May 21, 2009 at 11:25 PM, John M. Dlugosz <2nb81l...@sneakemail.com> wrote: > Larry Wall larry-at-wall.org |Perl 6| wrote: >> >> And since the "when" modifier counts as a conditional, you can rewrite >> >>    grep Dog, @mammals >> >> as >> >>    $_ when Dog for @mammals; >> >> So perhaps wi