[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

[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 #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 #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 #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 #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 #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 #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

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

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 #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 > : : :

[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

[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 #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

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 #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"

[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 #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 #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

[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