[perl #65412] Null PMC caused by implicit return of regex

2009-06-02 Thread Patrick R. Michaud via RT
This code appears to be working for me: $ cat 65412 class A { has $!rx; method do { $!rx = / xyz / } } A.new.do $ ./perl6 65412 $ I suspect the problem is really with the evalbot attempting to evaluate the returned regex in boolean context after the progr

[perl #65674] Cannot define a multi sub in a class in Rakudo

2009-06-02 Thread Patrick R. Michaud via RT
This is now working properly in c907d37 ... assigning ticket for spectest verification, and then it can be closed. Thanks! Pm

[perl #63800] Method 'result_object' not found calling make in a grammar action method

2009-06-02 Thread Patrick R. Michaud via RT
Rakudo now gives a much more useful error message for the case where make() cannot set a result object: $ cat 63800 grammar G { regex TOP { 'a' {*} } } class GA { method TOP($m) { make GA.new } } G.parse('a', :action(GA.new)); $ ./perl6 63800 make

[perl #61774] Private methods in classes misparsed as variables?

2009-06-02 Thread Patrick R. Michaud via RT
This now works as of c907d37: $ cat 61774 class A { has @something is rw; method doit { @something = <1 2 3>; say self!something; } my method something { "Hello, world"; } } my A $a .= new; $a.doit; $ ./perl6 61774 Hello,

[perl #61988] "$.foo" doesn't accept args

2009-06-02 Thread Patrick R. Michaud via RT
Now fixed in c907d37: $ cat 61988 class A { method foo { say @_; } method bar { $.foo(42); } } A.bar; $ ./perl6 61988 42 $ Assigning ticket for spectest verification. Thanks! Pm

[perl #61662] implicit binding of matches to $_

2009-06-02 Thread Patrick R. Michaud via RT
On Wed Dec 24 08:44:36 2008, dwh...@nvidia.com wrote: > (rakudo 34337) > > >>> $_ = "a"; say /a/ ?? "yes" !! "no" > yes > >>> $_ = "a"; say /b/ ?? "yes" !! "no" > Yes --- WRONG! This now works as of fc01cda: pmich...@orange:~/rakudo$ ./perl6 > $_ = "a"; say /a/ ?? 'yes' !! 'no'; yes > $_ = "a";

[perl #66196] .bytes is broken in Rakudo

2009-06-02 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #66196] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66196 > rakudo: my $str="TEST"; say $str.bytes rakudo d396ab: OUTPUT«ResizableStringArray: Can

[perl #66204] Type objects are writable in Rakudo

2009-06-02 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #66204] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66204 > rakudo: class Dog {}; say Dog.defined; Dog .= new; say Dog.defined rakudo d396ab: OUTP