Re: r24846 - docs/Perl6/Spec

2009-01-10 Thread Aristotle Pagaltzis
* jerry gay [2009-01-09 22:45]: > it's "eager" for the match to close "Impatient", "hasty"? Regards, -- Aristotle Pagaltzis //

[perl #62148] Cannot take .values of an uninitialized Any variable

2009-01-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62148] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62148 > rakudo: my Any $x .= new; say $x.values rakudo 35320: OUTPUT«Method '!flatten' not fou

Re: r24846 - docs/Perl6/Spec

2009-01-10 Thread Mark J. Reed
On Fri, Jan 9, 2009 at 7:34 PM, jerry gay wrote: >> If that's now the case, that's unfortunately confusing. In other >> contexts, "eagerness" is "leftmost" ("eager" for matching to start, if >> you like), which is orthogonal to "greed": Indeed, in the context of regular expressions this definit

[perl #62162] Problem when instantiating a class which has an argument typed as a class which loads a grammar in Rakudo

2009-01-10 Thread Patrick R. Michaud via RT
On Sat Jan 10 07:06:01 2009, masak wrote: > The following three correct Perl 6 modules give a runtime error in > Rakudo r35336. > > [...] > $ cat URI.pm > use v6; > > class URI; I'm not sure this is legal Perl 6. S11 says that the "class Foo;" form is only allowed as the first statement in the

[svn:parrot-pdd] r35334 - trunk/docs/pdds/draft

2009-01-10 Thread cotto
Author: cotto Date: Sat Jan 10 02:17:09 2009 New Revision: 35334 Modified: trunk/docs/pdds/draft/pdd08_keys.pod Log: [pdd] readability changes Modified: trunk/docs/pdds/draft/pdd08_keys.pod == --- trunk/docs/pdds/dra

[perl #62068] output from .perl for regex

2009-01-10 Thread Carl Mäsak via RT
Richard (>): > The output from .perl for a regex could be more useful than currently. > > [...] > > Perhaps, > > Regex { + } That does not seem to be legal Perl 6 to me. The idea of .perl is to output runnable code, after all. How about this instead? / + /

[perl #62156] Problems with File objects

2009-01-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62156] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62156 > rakudo: File.new rakudo 35336: OUTPUT«get_bool() not implemented in class 'File' [...]

[perl #62168] .comb doesn't take zero arguments in Rakudo

2009-01-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62168] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62168 > rakudo: " a b c".comb.perl.say rakudo 35345: OUTPUT«too few arguments passed (1) - 4

[perl #62170] Rakudo retains the Perl 5 behavior of trimming trailing fields

2009-01-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62170] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62170 > rakudo: " a b c".split(/ <.sp>+ /).perl.say rakudo 35344: OUTPUT«["", "a", "b", "c"

Re: [perl #62068] output from .perl for regex

2009-01-10 Thread Richard Hainsworth
/ + / is what I thought it should be. { ... } is what rakudo current gives, which from the point of view of runnable code and comprehensible output, are wrong. Carl Mäsak via RT wrote: Richard (>): The output from .perl for a regex could be more useful than currently. [...] Perhaps, R

[perl #62166] There's something wrong with input in Rakudo

2009-01-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62166] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62166 > Rakudo r35341 no longer does input correctly. $ perl6 -e 'my $foo = =$*IN' Attempt to f

[perl #62162] Problem when instantiating a class which has an argument typed as a class which loads a grammar in Rakudo

2009-01-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62162] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62162 > The following three correct Perl 6 modules give a runtime error in Rakudo r35336. $ cat

[perl #62164] Smartmatch dies when comparing a Str and an Array

2009-01-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62164] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62164 > perl6: say "foo" ~~ ["foo", "bar"] ..rakudo 35339: OUTPUT«Non-dwimmy hyperoperator can

Re: [perl #62070] macro not working

2009-01-10 Thread Larry Wall
On Thu, Jan 08, 2009 at 06:11:22AM -0800, Richard Hainsworth wrote: : # New Ticket Created by Richard Hainsworth : # Please include the string: [perl #62070] : # in the subject line of all future correspondence about this issue. : # http://rt.perl.org/rt3/Ticket/Display.html?id=62070 > : : :

what is going on here?

2009-01-10 Thread Richard Hainsworth
Could someone help me understand what is going on in the following snippet? my %players = {'william'=>2, 'peter'=>3,'john'=>1,'mary'=>5}; my @ranking = %players.sort: { .value }; for @ranking {.say}; I cut and pasted from Patrick's blog on sorting and played around to get an array. But ... I

Re: [perl #61870] [BUG] [META] Trac system borks authenticated user's privileges

2009-01-10 Thread Allison Randal
Our trac admins report that this is caused by users who don't have their email authenticated (that is, Trac sends you a test email, and you confirm that you got it, so Trac knows the address is valid). When we upgraded, existing users needed to re-authenticate their email addresses, but the upg

[svn:parrot-pdd] r35378 - in trunk: . config/gen/makefiles docs docs/pdds include/parrot lib/Parrot/Docs/Section src src/gc src/pmc src/stm

2009-01-10 Thread allison
Author: allison Date: Sat Jan 10 19:55:39 2009 New Revision: 35378 Modified: trunk/docs/pdds/pdd09_gc.pod Changes in other areas also in this revision: Added: trunk/include/parrot/gc_api.h - copied unchanged from r35374, /branches/pdd09gc_part2/include/parrot/gc_api.h trunk/includ

Re: [perl #61870] [BUG] [META] Trac system borks authenticated user's privileges

2009-01-10 Thread Bob Rogers
From: Allison Randal Date: Sat, 10 Jan 2009 19:47:21 -0800 When you update your email address in trac, it should resend the authentication request. Once you confirm the change, you'll be set. Allison What about those of us who can't log in? I can't even reset my password, let a

Re: [perl #61870] [BUG] [META] Trac system borks authenticated user's privileges

2009-01-10 Thread Allison Randal
Allison Randal wrote: Our trac admins report that this is caused by users who don't have their email authenticated (that is, Trac sends you a test email, and you confirm that you got it, so Trac knows the address is valid). When we upgraded, existing users needed to re-authenticate their email

Re: [perl #62170] Rakudo retains the Perl 5 behavior of trimming trailing fields

2009-01-10 Thread Patrick R. Michaud
On Sat, Jan 10, 2009 at 09:45:06AM -0800, Carl Mäsak wrote: > rakudo: " a b c".split(/ <.sp>+ /).perl.say > rakudo 35344: OUTPUT«["", "a", "b", "c"]␤» > oh, and the p5 behavior of trimming trailing fields is not in p6 > (for split) > * masak submits rakudobug This looks totally correct to m

Re: [perl #62170] Rakudo retains the Perl 5 behavior of trimming trailing fields

2009-01-10 Thread Mark J. Reed
On Sun, Jan 11, 2009 at 12:20 AM, Patrick R. Michaud wrote: > On Sat, Jan 10, 2009 at 09:45:06AM -0800, Carl Mäsak wrote: >> rakudo: " a b c".split(/ <.sp>+ /).perl.say >> rakudo 35344: OUTPUT«["", "a", "b", "c"]␤» >> oh, and the p5 behavior of trimming trailing fields is not in p6 >> (for

[perl #61324] [BUG] Some issues with undefined scalar and array values.

2009-01-10 Thread Patrick R. Michaud via RT
Now fixed in r35389: $ ./parrot perl6.pbc > my $x; say $x, 2 Use of uninitialized value 2 > my $x = undef; say $x, 2; Use of uninitialized value 2 > my @a; @a[2] = 'b'; say @a; Use of uninitialized value Use of uninitialized value b > my @a; @a[2] = 'b'; say @a.perl; [undef, undef, "b"] > We prob

[perl #57882] Trying to assign to a class attribute within a class declaration in rakudo makes Parrot segfault

2009-01-10 Thread Patrick R. Michaud via RT
On Tue Aug 12 14:17:20 2008, masak wrote: > r30188: > $ ./perl6 -e 'class A { my $.x = 7; say $.x }' # segfaults > Lexical 'self' not found > [...] > Segmentation fault > > Not sure if the error message from Pugs is right either. Should it be > looking for 'self' at this stage? What should the pro

[perl #62156] Problems with File objects

2009-01-10 Thread Patrick R. Michaud via RT
On Sat Jan 10 03:34:57 2009, masak wrote: > rakudo: File.new > rakudo 35336: OUTPUT«get_bool() not implemented in class > 'File' [...] > rakudo: say File.new > rakudo 35336: OUTPUT«get_string() not implemented in class > 'File' [...] > rakudo: say File.new.WHAT > rakudo 35336: OUTPUT«Method '

[perl #62148] Cannot take .values of an uninitialized Any variable

2009-01-10 Thread Patrick R. Michaud via RT
On Fri Jan 09 14:17:02 2009, masak wrote: > rakudo: my Any $x .= new; say $x.values > rakudo 35320: OUTPUT«Method '!flatten' not found for invocant > of class 'Any' [...] > * masak submits rakudobug Now "fixed" in r35392, although I'm not sure what the correct behavior should be. $ ./parrot p

[perl #62172] Rakudo forgets about the length of an array passed twice as a parameter

2009-01-10 Thread Patrick R. Michaud via RT
On Sat Jan 10 10:14:44 2009, masak wrote: > perl6: my @a = 1..8; sub foo(@a) { say +...@a; bar(@a) }; sub > bar(@a) { say +...@a }; foo(@a) > rakudo 35345: OUTPUT«8␤1␤» > ..pugs: OUTPUT«8␤8␤» > ..elf 24854: OUTPUT«1␤1␤» > * masak submits rakudobug Now fixed in r35392: $ ./parrot perl6.pbc

[perl #62162] Problem when instantiating a class which has an argument typed as a class which loads a grammar in Rakudo

2009-01-10 Thread Patrick R. Michaud via RT
On Sat Jan 10 07:23:00 2009, pmichaud wrote: > On Sat Jan 10 07:06:01 2009, masak wrote: > > The following three correct Perl 6 modules give a runtime error in > > Rakudo r35336. > > > > [...] > > $ cat URI.pm > > use v6; > > > > class URI; > > > I'm not sure this is legal Perl 6. S11 says tha

[perl #62122] ~ in regexes doesn't allow braces as the last term

2009-01-10 Thread Patrick R. Michaud via RT
> '(' ~ ')' 'a'* parses and does what I mean, but when I replace the last > term with ['a'*] it fails to parse. Looks like a bug in PGE's parser, I'll look into this in a day or so. Thanks, Pm

[perl #62176] wierd segmentation fault with correct code.

2009-01-10 Thread Patrick R. Michaud via RT
On Sat Jan 10 12:19:38 2009, richardh wrote: > Getting a wierd segmentation fault with the following program (also > attached). > > I am using rakudo from parrot 35286 > [...] Try running the script using parrot directly instead of the "perl6" binary, and let us know if you still see the segfault