[perl #63152] [PATCH] implement 'make' and support '$/' a method parameter

2009-02-11 Thread via RT
# New Ticket Created by Chris Dolan # Please include the string: [perl #63152] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63152 The attached patch brings Rakudo up to the level of NQP as a language for grammar

[perl #63154] [PATCH] support :lang(Perl6) embedded in PGE

2009-02-11 Thread via RT
# New Ticket Created by Chris Dolan # Please include the string: [perl #63154] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63154 The simple attached patch allows embedded code in PGE to call back into Rakudo.

[perl #62894] Rakudo thinks that protoobjects are defined

2009-02-11 Thread jn...@jnthn.net via RT
On Thu Jan 29 02:18:55 2009, masak wrote: masak so protoobjects are defined? masak rakudo: class A {}; my A $a; say $a.defined p6eval rakudo 36139: OUTPUT«1␤» moritz_ well, that's wrong * masak submits rakudobug moritz_ perl6: my $a; say $a.defined p6eval rakudo 36139: OUTPUT«0␤» p6eval

[perl #62828] .clone inside while loop which shifts off an array doesn't clone properly in Rakudo

2009-02-11 Thread jn...@jnthn.net via RT
On Tue Jan 27 05:27:07 2009, masak wrote: masak rakudo: class A { has $.b; }; while shift [A.new( :b(0) )] - $a { say $a.b; $a.clone( :b($a.b + 1) ); say $a.b; last; } polyglotbot OUTPUT[0␤1␤] * masak submits rakudobug Fixed in git 59024e0 and added pretty much this exact code as a test case

[perl #63002] Int values cannot be passed as params and then used in ranges in Rakudo

2009-02-11 Thread jn...@jnthn.net via RT
On Tue Feb 03 07:25:43 2009, masak wrote: Parrot r36318 (before the merge that broke Rakudo), and Rakudo 21f374. $ perl6 -e 'my $a = 5; say $a.PARROT; say $a .. 5' Int 5 $ perl6 -e 'my $a = 5; sub foo($a) { say $a.PARROT; say $a .. 5 }; foo($a)' ObjectRef-Int Undefined value shifted from

[perl #62768] Rakudo dies when PIR-compiling a module that depends on a module with undeclared barewords

2009-02-11 Thread jn...@jnthn.net via RT
On Wed Feb 11 05:15:12 2009, jn...@jnthn.net wrote: On Fri Jan 30 01:29:38 2009, masak wrote: The failure during PIR compilation turned out to be due to an undeclared identifier 'B'. $ cat A.pm use v6; class A { has B $!b; } $ cat A/B.pm use v6; use A; class A::B

[perl #61682] Cloning affects the original object under certain conditions in Rakudo

2009-02-11 Thread jn...@jnthn.net via RT
On Thu Dec 25 06:49:28 2008, masak wrote: Rakudo r34342 sometimes destroys the original object when running .clone(). This works: $ cat right.p6 class A { has $.b; } my @q = A.new( :b(1) ); my $p = shift @q; $p.clone( :b($p.b + 1) ); say $p.b; $ perl6 right.p6 1 But when a while

[perl #62702] Rakudo misparses empty regex definitions as sub calls

2009-02-11 Thread jn...@jnthn.net via RT
On Sat Jan 24 08:40:24 2009, masak wrote: Rakudo r35957: $ perl6 -e 'grammar G { regex TOP {} }' Could not find non-existent sub TOP [...] This is the wrong error message to give. The empty regex in TOP should be disallowed. After fixes for a related ticket earlier, this now reports:

Re: [perl #63154] [PATCH] support :lang(Perl6) embedded in PGE

2009-02-11 Thread Patrick R. Michaud
On Tue, Feb 10, 2009 at 08:32:50PM -0800, Chris Dolan wrote: The simple attached patch allows embedded code in PGE to call back into Rakudo. The double curlies are still necessary due to PGE implementation details. With this patch the following simple examples work: % perl6 -e ' ~~

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

2009-02-11 Thread jn...@jnthn.net via RT
On Wed Dec 31 13:10:48 2008, masak wrote: TimToady and Grammar.parse($string) should work masak is that specced? TimToady or StoryGrammar.new($string).TOP [particle] yes, trying to help you Get It Right. masak TimToady: I gotta write this down somewhere. Matt-W .parse($string) on a grammar

[perl #62700] .parse hangs on empty grammar

2009-02-11 Thread jn...@jnthn.net via RT
On Sat Jan 24 08:38:49 2009, masak wrote: It's r35957, and Rakudo seems to hang on the following: $ perl6 -e 'grammar G {}; G.parse()' Putting in a 'regex TOP { something }' seems to work... but it's a bit unintuitive that nothing happens without it, not even an error message. Fixed in

Re: [perl #63002] Int values cannot be passed as params and then used in ranges in Rakudo

2009-02-11 Thread Patrick R. Michaud
On Wed, Feb 11, 2009 at 05:02:52AM -0800, jn...@jnthn.net via RT wrote: Was more clone-related fun. I suspect when we've been calling Parrot's clone directly, we'll usually want to really be calling .clone() on the object, since it can handle ObjectRef chains. That fixes this issue. (Of

[nicho...@hexten.net: [1255] Avoid using -l in the one liner that determines @INC, for the benefit of Rakudo]

2009-02-11 Thread Nicholas Clark
Patrick, done: - Forwarded message from nicho...@hexten.net - Envelope-to: n...@ccl4.org Delivery-date: Wed, 11 Feb 2009 20:45:22 + Delivered-To: tapx-com...@hexten.net From: nicho...@hexten.net To: tapx-com...@hexten.net Subject: [1255] Avoid using -l in the one liner that