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 http://www.dlugosz.com/Perl6/web/med-loop.html. 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 http://www.dlugosz.com/Perl6/web/med-loop.html.  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 enjoyed your

[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. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65864 masak rakudo: my (%h?) p6eval rakudo 14bba5: OUTPUT«get_pmc_keyed_str() not

[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. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65878 dakkar rakudo: sub infix:R($a,$b) { $a ~ '-' ~ $b }; sub infix:RR($a,$b) { $a ~ '_' ~

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 http://use.perl.org/~masak/journal/38279 The second section of the

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. : # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65878 : : : dakkar

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/downloads

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

2009-05-21 Thread François Perrad
2009/5/21 Patrick R. Michaud pmich...@pobox.com: 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

[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. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65904 masak rakudo: sub foo($bar:) {}; p6eval rakudo 79d0b9: OUTPUT«error:imcc:syntax

[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. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65900 masak rakudo: my ($a is readonly) = 5; say $a; $a = 42; say $a p6eval rakudo 79d0b9:

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 la...@wall.org wrote: : dakkar rakudo: sub infix:R($a,$b) { $a ~ '-' ~ $b }; sub : infix:RR($a,$b) { $a ~ '_' ~ $b }; say 'x' R 'y'; say 'x' RR 'y'; : p6eval rakudo e6b463: OUTPUT«x-y␤x_y␤» : dakkar now, apart from don't do that, what should happen? : [snip] : dakkar

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 http://www.dlugosz.com/Perl6/web/med-loop.html. The reason this [.prime] works is because the method-call

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 http://www.dlugosz.com/Perl6/web/med-loop.html. 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.

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:RR is longer than the meta R, so should take precedence under LTM. We used to try to form tokens out

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 http://www.dlugosz.com/Perl6/web/med-loop.html. 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, which