[perl #61902] [BUG] r34778 - strange list happenings

2009-01-01 Thread Mark A. Hershberger
# New Ticket Created by (Mark A. Hershberger) # Please include the string: [perl #61902] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61902 > I was working on Euler problem 2 (http://projecteuler.net/index.php?section=pr

[perl #61892] list-comprehension assignments with declaration

2009-01-01 Thread Dave Whipp
# New Ticket Created by "Dave Whipp" # Please include the string: [perl #61892] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61892 > (rakudo 34751) I've been trying to figure out how to do a "($hd, @tl) = @list" assignme

[perl #61904] [BUG] r34778 - code takes forever

2009-01-01 Thread Mark A. Hershberger
# New Ticket Created by (Mark A. Hershberger) # Please include the string: [perl #61904] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61904 > Again, playing around with Euler, wrote myself a simple little class to genera

[perl #61898] defined-or-assign operator not implemented

2009-01-01 Thread Dave Whipp
# New Ticket Created by "Dave Whipp" # Please include the string: [perl #61898] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61898 > rakudo: my $a; $a //= 1 rakudo 34768: OUTPUT«get_iter() not implemented

[perl #61894] lexicals not hoisted into classes

2009-01-01 Thread Dave Whipp
# New Ticket Created by "Dave Whipp" # Please include the string: [perl #61894] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61894 > example: pugs: my $global = 1; class A { method foo { say "foo = $global" } }; A.foo pu

Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-01 Thread Steve Lukas
Hello, I'd vote for the OO-style. My reason is that the major criteria should be the reader perspective. It should be as clear as possible what's going on in the main code even if the reader doesn't know the hottest p6 tricks! What you are doing here is: two operations on the same thing (the pidf

Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-01 Thread Geoffrey Broadwell
On Fri, 2009-01-02 at 00:30 +0200, Leon Timmermans wrote: > I can't help wondering "why does pid_file_handler need to be split up > in the first place?" Why wouldn't it be possible to simply call > pid_file_handler after become_daemon? Two answers: 1. If an error occurs that will not allow the PI

Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-01 Thread Leon Timmermans
I can't help wondering "why does pid_file_handler need to be split up in the first place?" Why wouldn't it be possible to simply call pid_file_handler after become_daemon? Regards, Leon Timmermans On Thu, Jan 1, 2009 at 10:34 PM, Geoffrey Broadwell wrote: > In the below Perl 5 code, I refactore

[perl #61882] [BUG] r34706 r values should not autovivify

2009-01-01 Thread publiustemp-perl6compil...@yahoo.com (via RT)
# New Ticket Created by publiustemp-perl6compil...@yahoo.com # Please include the string: [perl #61882] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61882 > Per Larry: Definitely bug. Rvalues aren't supposed to autovivi

Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-01 Thread Geoffrey Broadwell
In the below Perl 5 code, I refactored to pull the two halves of the PID file handling out of init_server(), but to do so, I had to return a sub from pid_file_handler() that acted as a "continuation". The syntax is a bit ugly, though. Is there a cleaner way to this in Perl 6? ## sub init_ser

[perl #61886] [TODO] Grammar.parse and Grammar.parsefile

2009-01-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61886] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61886 > and Grammar.parse($string) should work is that specced? or StoryGrammar.new($string).

[perl #61880] //= not understood by Rakudo

2009-01-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #61880] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61880 > Rakudo r34703: $ perl6 -e 'my $year; $year //= 2009' get_iter() not implemented in clas

Re: Bug or feature? Hash autovivification

2009-01-01 Thread Patrick R. Michaud
On Wed, Dec 31, 2008 at 08:06:48AM -0800, Ovid wrote: > Just stumbled across this, but I can't tell from S09 if this is a bug or > feature: > > $ ./perl6 -e 'my %foo; if %foo {}; say %foo.perl' > {"a" => undef} It's a bug. In order to simplify the slicing implementation Rakudo currently aut

Re: r24711 - docs/Perl6/Spec

2009-01-01 Thread Darren Duncan
pugs-comm...@feather.perl6.nl wrote: --name :name --name=value:name --name="spacy value":name«'spacy value'» --name='spacy value':name«'spacy value'» --name=val1,'val 2',etc :name«val1 'val 2' etc» +-n