[perl #63520] 'is export' in Rakudo

2009-02-28 Thread Patrick R. Michaud via RT
On Thu Feb 26 04:37:42 2009, masak wrote: $ cat A.pm module A; sub foo is export { } $ perl6 -e 'use A; foo' Could not find non-existent sub foo [...] I may have misunderstood how to use the 'is export' feature, but the above doesn't work, and that surprises me. What should I do? We

[perl #63506] make spectest: Scope not found for PAST::Var '@INC'

2009-02-28 Thread Patrick R. Michaud via RT
On Wed Feb 25 18:21:49 2009, i...@nurey.com wrote: I am on OS X 10.5.6 using perl 5.8.9 from macports. I cloned rakudo's git repo and then compiled as follows: $ cd rakudo $ perl Configure.pl --gen-parrot $ parrot/parrot_config revision 37000 $ gmake $ gmake spectest perl t/harness

[perl #60152] if(something) is not treated as a sub call in Rakudo

2009-02-28 Thread Patrick R. Michaud via RT
On Mon Oct 27 11:21:57 2008, pmichaud wrote: On Sun, Oct 26, 2008 at 02:47:12PM -0700, Carl Mäsak wrote: moritz_ rakudo: if(3 5) { say yes } # that should fail Early experimentation indicates that this goes for unless, while, until and given as well, and probably others I can't think of

[perl #60152] if(something) is not treated as a sub call in Rakudo

2009-02-28 Thread Patrick R. Michaud via RT
On Mon Oct 27 11:21:57 2008, pmichaud wrote: On Sun, Oct 26, 2008 at 02:47:12PM -0700, Carl Mäsak wrote: moritz_ rakudo: if(3 5) { say yes } # that should fail Early experimentation indicates that this goes for unless, while, until and given as well, and probably others I can't think of

[perl #41888] Perl 6 FAQ text

2009-02-28 Thread Patrick R. Michaud via RT
Closing this ticket, as we'll put any FAQ on the new rakudo.org website or one of the other Perl 6 websites. Thanks! Pm

[perl #61136] [TODO] Implement .ACCEPT for Match class.

2009-02-28 Thread Patrick R. Michaud via RT
On Sun Dec 07 13:31:27 2008, bacek wrote: Hello. Simple example ba...@icering:~/src/xquery$ cat m.pl token a { 'a' }; token b { 'b' }; rule Foo { a | b }; 'b' ~~ / Foo /; given $/Foo { when .a { say a; }; when .b { say b; }; }; Now fixed in 7bd5a95 (and tests added to

[perl #61768] [BUG] exit() function various failures

2009-02-28 Thread Patrick R. Michaud via RT
On Sat Dec 27 10:07:39 2008, mberends wrote: In Rakudo r34416, the exit() function gives: *** glibc detected *** /usr/local/bin/perl6: double free or corruption (!prev): 0x013ee070 *** In a script, other statements prior to exit() execute correctly. On the command line, perl6

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

2009-02-28 Thread Patrick R. Michaud via RT
On Fri Jan 02 18:02:41 2009, andy_b...@wiwb.uscourts.gov wrote: class Prime { has @!primes is rw; has Int $!number is rw = 1; method next() { my $not_prime = 1; while($not_prime $!number++) { $not_prime = @!primes.grep({$!number % $^a == 0}); } Appears that

[perl #62622] + doesn't DWIM enough in Rakudo

2009-02-28 Thread Patrick R. Michaud via RT
On Thu Jan 22 02:48:08 2009, masak wrote: moritz_ masak: can you submit the 'my Int $x = +2' bug please? * masak submits masak rakudo: my Int $x = +'2' p6eval rakudo 35875: OUTPUT«Type mismatch in assignment. [...] jnthn rakudo: say WHAT +2; p6eval rakudo 35875: OUTPUT«Num␤» jnthn meh.

[perl #63222] git pull ?

2009-02-28 Thread Patrick R. Michaud via RT
I'm guessing this was an issue in the build system and has since been fixed with the --gen-parrot option to Configure.pl . I'll close the ticket for now; if the problem is not resolved, feel free to re-open a ticket (and describe a bit more about your setup so we can try to reproduce it).

Re: [perl #63374] AutoReply: [BUG] Build fails with segfault while generating gen_settings.pir

2009-02-27 Thread Patrick R. Michaud
On Fri, Feb 20, 2009 at 10:56:02PM -0500, Garrett Rooney wrote: On Fri, Feb 20, 2009 at 11:23 AM, perl6 via RT perl6-bugs-follo...@perl.org wrote: I'm getting a crash on OS X when trying to build rakudo. This is with parrot r36907 and the current version of rakudo

Re: Help re-building rakudo

2009-02-26 Thread Patrick R. Michaud
On Thu, Feb 26, 2009 at 11:53:21AM -0800, yary wrote: I have rakudo built under my parrot directory. I updated and rebuilt parrot, then updated and rebuilt rakudo, but rakudo won A longer announcement should be hitting the list later today, but for now the recommended build sequence for rakudo

Re: Help re-building rakudo

2009-02-26 Thread Patrick R. Michaud
On Thu, Feb 26, 2009 at 10:06:53PM +0100, Moritz Lenz wrote: But after that please do a 'make clean; perl Configure.pl' to make sure that the fallout of the previous build don't affect the new one. I've been thinking that Configure.pl should force a 'make clean' to avoid the problem altogether.

[perl #63350] List in item context misbehaves

2009-02-19 Thread Patrick R. Michaud via RT
On Thu Feb 19 12:03:03 2009, ml...@physik.uni-wuerzburg.de wrote: Rakudo 00e9db: .say for (1, 2, 3).item prints three lines, although it should be just one (same as for [1, 2, 3]), see http://irclog.perlgeek.de/perl6/2009-02-19#i_924753 and below. There's a test for that in

Re: Is there a mailing list for rakudo commits

2009-02-17 Thread Patrick R. Michaud
On Tue, Feb 17, 2009 at 01:24:36PM -0600, Bruce Gray wrote: On Feb 17, 2009, at 11:36 AM, Kevin HaleBoyes wrote: A mailing list was created earlier this month. http://groups.google.com/group/rakudo-commits The relevant conversation is here: http://irclog.perlgeek.de/parrot/2009-02-03

Re: Implementing $?LINE and other S02 compile-time vars

2009-02-16 Thread Patrick R. Michaud
On Sun, Feb 15, 2009 at 03:48:04PM -0600, Chris Dolan wrote: On the fly would require some significant work in PGE, I think, to keep the line count correct in the face of backtracking. However, this may already be necessary down the road for proper line numbers in error messages for code

Re: Implementing $?LINE and other S02 compile-time vars

2009-02-16 Thread Patrick R. Michaud
On Mon, Feb 16, 2009 at 05:59:38PM +0100, Jonathan Worthington wrote: Patrick R. Michaud wrote: They're likely doable, yes. I'm not entirely certain how to handle the case of anonymous grammars, classes, roles, etc. -- those lookups may be a bit trickier. I planned to do these just

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 ' ~~

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

[perl #63038] Test.pm eats the Use of uninitialized value warnings

2009-02-04 Thread Patrick R. Michaud via RT
Currently Test.pm disables the warnings to prevent tons of Use of uninitialized value warnings when running the spectests. Personally I think the spectests should not produce these warnings in the first place, but I haven't found a good way to avoid/disable them yet. Pm

Re: [perl #62738] The use of 'use' before 'class Foo is Bar' in Rakudo

2009-01-27 Thread Patrick R. Michaud
On Sun, Jan 25, 2009 at 07:41:04AM -0800, Carl Mäsak wrote: [...] TimToady masak: yes, STD allows use before class Foo is Bar; TimToady however it's not clear the p6 autorecognizer will work in that case TimToady so you might have to start with 'use v6' masak TimToady: I consider starting

Rakudo repository -- svn or git?

2009-01-27 Thread Patrick R. Michaud
Well, we're now at the point where it's time to move the Rakudo repository, and thus we need a decision on continuing to use svn for the repository or switching to git. Obviously staying with svn is very easy to handle. The other repositories that we have to coordinate with (parrot and pugs)

Re: Rakudo repository -- svn or git?

2009-01-27 Thread Patrick R. Michaud
On Tue, Jan 27, 2009 at 11:25:29AM -0700, Stephen Weeks wrote: Switching the rakudo repository to git means that it would likely live on github, at least for a short time. We'd also have to provide mechanisms for people to continue to obtain and be able to easily commit to the pugs

Re: [perl #62382] [TODO] method form of postfix:i

2009-01-15 Thread Patrick R. Michaud
On Wed, Jan 14, 2009 at 10:00:33PM -0800, Carl Mäsak wrote: TimToady rakudo: my $t = 5; say $t.i p6eval rakudo 35576: OUTPUT«Method 'i' not found for invocant of class 'Int [...] masak TimToady: should that work? TimToady think so * masak submits rakudobug Rakudo doesn't yet recognize the

Re: Rakudo leaving the Parrot nest

2009-01-15 Thread Patrick R. Michaud
As a comment to my use.perl journal post, Infinoid wrote: Earlier today on the IRC channel, Will Coleda made an interesting comment regarding partcl. 07:28 @Coke I'd rather have folks go to /partcl/ to get parrot. That makes a lot of sense. So, have you given much thought to how you

Rakudo leaving the Parrot nest

2009-01-14 Thread Patrick R. Michaud
As many of you will have gathered from discussions on other mailing lists and IRC, it's time for Rakudo Perl to leave the Parrot nest and move to its own repository. I think we should also take this opportunity to re-evaluate the entire Rakudo Perl infrastructure and decide what will be most

Re: [perl #62260] [BUG] END blocks don't see external variables

2009-01-13 Thread Patrick R. Michaud
On Mon, Jan 12, 2009 at 12:57:44PM -0800, publiustemp-perl6compil...@yahoo.com (via RT) wrote: This is blocking me implementing a simple 'plan no_plan' for tests. $ perl6 -e 'my $foo = Goodbye cruel world!; END { say $foo }' Scope not found for PAST::Var '$foo' in Confirmed -- there are

Re: [perl #62244] [BUG] recent rakudo changes have broken NCI

2009-01-13 Thread Patrick R. Michaud
On Mon, Jan 12, 2009 at 07:34:33AM -0800, Donald Hunter wrote: It appears that rakudo changes committed over the weekend have broken NCI. The last known working revision was #35300 for ext/SQLite3/t/test.p6 which is crashing on #35440. You'll need to patch ext/SQLite3/Makefile.PL so that it

[perl #61172] hash becomes string or int

2009-01-11 Thread Patrick R. Michaud via RT
Now fixed in r35397: $ ./parrot perl6.pbc sub foo(%h?) { { a = 1, %h }.perl.say; }; foo( { b = 2 } ); {a = 1, b = 2} foo( { } ); {a = 1} foo( ); {a = 1} We need tests for optional array and hash parameters in the test suite, so assigning ticket to moritz. Thanks! Pm

[perl #60734] [TODO] $^foo variable should also declare corresponding $foo variable

2009-01-11 Thread Patrick R. Michaud via RT
On Fri Nov 21 14:54:47 2008, masak wrote: This should output dito twice: $ ./perl6 -e '{ say $^same; say $same }.(dito)' Scope not found for PAST::Var '$same' ...but it doesn't in Rakudo r32290. but it does in r35397: $ ./parrot perl6.pbc { say $^same; say $same }.('rakudo');

[perl #61916] initialization parameters from base classes

2009-01-11 Thread Patrick R. Michaud via RT
On Fri Jan 02 12:21:24 2009, dave.wh...@gmail.com wrote: The default new method allows values of attributes to be set as named args -- but rakudo doesn't hoist params from base classes: dwhipprakudo: class A { has $.foo }; class B is A { has $.bar }; B.new( foo = 1, bar = 2)

[perl #62068] output from .perl for regex

2009-01-11 Thread Patrick R. Michaud via RT
On Sat Jan 10 10:00:20 2009, richardh wrote: / digit+ / 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. In general, being able to use .perl on subs and methods implies that an

[perl #62030] perl -e does not populate @*ARGS

2009-01-11 Thread Patrick R. Michaud via RT
On Tue Jan 06 15:04:36 2009, mberends wrote: Up until about mid December 2008, the Rakudo perl6 -e copied its command line arguments into @*ARGS. Sorry, revision number unknown. At the end of December, perl6 -e was ignoring command line arguments. This feature is probably untested. For

[perl #62046] Error when defining a class method called 'list'

2009-01-11 Thread Patrick R. Michaud via RT
On Wed Jan 07 09:16:32 2009, cspencer wrote: class Foo { method list { say bar } }; my $f = Foo.new; $f.list will produce the following error in Rakudo: too few arguments passed (0) - 1 params expected current instr.: 'parrot;Foo;list' pc 187

[perl #61770] Bare 'print' and 'say' calls should be compile errors

2009-01-11 Thread Patrick R. Michaud via RT
On Wed Jan 07 17:54:26 2009, larry wrote: [...] So my inclination is to outlaw bare say as well, as an aid to catching a common p5thinko that some folks might otherwise find difficult to debug. Bare say and print are now illegal in Rakudo as of r35431. This currently catches only the truly

Re: [perl #61770] Bare 'print' and 'say' calls should be compile errors

2009-01-11 Thread Patrick R. Michaud
On Sun, Jan 11, 2009 at 07:18:53PM -0800, Patrick R. Michaud via RT wrote: On Wed Jan 07 17:54:26 2009, larry wrote: Bare say and print are now illegal in Rakudo as of r35431. This currently catches only the truly bare say/print -- the parenthesized forms are still allowed: say

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: mberends rakudo: a b c.split(/ .sp+ /).perl.say p6eval rakudo 35344: OUTPUT«[, a, b, c]␤» TimToady oh, and the p5 behavior of trimming trailing fields is not in p6 TimToady (for split) * masak submits rakudobug This looks

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

[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: masak rakudo: my Any $x .= new; say $x.values p6eval 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. $

[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 that the class Foo;

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

Re: [perl #62002] Object.perl is not inherited to user-defined classes

2009-01-06 Thread Patrick R. Michaud
On Tue, Jan 06, 2009 at 02:50:07AM -0800, Carl Mäsak wrote: Due to the structurally recursive nature of C.perl, the fact that Rakudo r34997 doesn't give newly defined classes a default C.perl method upon definition is very keenly felt e.g. when doing C.perl on a list of instances of the new

Re: [perl #62024] [TODO]: implement qqx

2009-01-06 Thread Patrick R. Michaud
On Tue, Jan 06, 2009 at 12:11:28PM -0800, Moritz Lenz wrote: I know that rakudo doesn't prioritize implementation of the various quoting constructs, but there are various things that need testing ($*OUT.say, @*ARGS (which seems to be broken atm), command line switches, things like RT #61980)

Re: [perl #62028] say with no args should be an error

2009-01-06 Thread Patrick R. Michaud
On Tue, Jan 06, 2009 at 01:50:06PM -0800, Dave Whipp wrote: S16 requires that say (and print) when called with no args should be a compile-time error. Rakudo accepts it with no error. Since S16 has been in an incomplete draft status for such a long time, I'd like to get confirmation from p6l

Re: [perl #61944] Rakudo stringifies some operands to X~X too early

2009-01-04 Thread Patrick R. Michaud
On Sat, Jan 03, 2009 at 09:33:30AM -0800, Carl Mäsak wrote: eric256 rakudo: my %test = (1 = a b c); my @word = e f g; (%test{1} X~X @word).perl.say p6eval rakudo 34889: OUTPUT«[a b ce, a b cf, a b cg]␤» eric256 it appears to be stringifying a b c before crossing it..any idea what i did wrong?

Re: [perl #61928] [BUG] (undef === undef)

2009-01-03 Thread Patrick R. Michaud
On Fri, Jan 02, 2009 at 01:52:45PM -0800, Todd Hepler wrote: I think this is a bug, but I'm not sure. (undef === undef) currently evaluates to false. Seem like it should be true. I couldn't find a test for it, so below is a patch to add one. Before entering a fix for this, I'm curious

Re: [perl #61860] Printing a variable from inside an eval yields Null PMC Access in Rakudo

2008-12-31 Thread Patrick R. Michaud
On Tue, Dec 30, 2008 at 01:04:58PM -0800, Carl Mäsak wrote: masak rakudo: my $a = 5; eval 'say $a' p6eval rakudo 34665: RESULT«Null PMC access in find_method() [...] * masak submits rakudobug At the moment eval strings are unable to access their outer lexical environment -- fixing this will

[perl #61172] hash becomes string or int

2008-12-30 Thread Patrick R. Michaud via RT
On Mon Dec 08 10:24:33 2008, ihrd wrote: Hi! in 33622: sub foo (%h) { say %h.perl }; foo({a=1}); {a = 1} sub foo (%h) { say %h.perl }; foo(1); 1 sub foo (%h) { say %h.perl }; foo(a); a This is a problem with parameter passing of arrays and hashes in general -- the parameter takes on

[perl #61814] [TODO] implement 'my class'

2008-12-30 Thread Patrick R. Michaud via RT
On Mon Dec 29 08:40:57 2008, masak wrote: S12: To declare a lexically scoped class, use my class. This currently does not work in Rakudo. Marking ticket as a duplicate of RT #61108. Pm

[perl #61826] [BUG] use after module executes out of order in compiled PIR

2008-12-30 Thread Patrick R. Michaud via RT
On Mon Dec 29 12:49:10 2008, jhorwitz wrote: assume the following three files: Bar.pm: say in Bar.pm; foo1.p6: module Foo; use Bar; say in Foo; foo2.p6: use Bar; module Foo; say in Foo; This second version (foo2.p6) isn't valid Perl 6. Rakudo

[perl #61868] say eval

2008-12-30 Thread Patrick R. Michaud via RT
On Tue Dec 30 17:46:31 2008, si...@simon-cozens.org wrote: This causes a null access in PMC, presumably because the eval is returning the wrong kind of nothing. This should now be fixed in r34682, assigning to moritz++ so that we can verify there's a test for it. Thanks! Pm

[perl #61670] list quotes don't return list for 1-elem

2008-12-26 Thread Patrick R. Michaud via RT
On Wed Dec 24 09:45:58 2008, dwh...@nvidia.com wrote: Demonstrated by this test: dwhip rakudo: .say for A B.map: { [ .split() ] } p6evalirc://freenode/p6eval,isnick rakudo 34338: OUTPUT«A␤B␤» dwhipp rakudo: .say for A.map: { [ .split() ] } p6evalirc://freenode/p6eval,isnick rakudo 34338:

[perl #61672] .map method (also grep) doesn't allow pointy-blocks

2008-12-26 Thread Patrick R. Michaud via RT
Now fixed in r34388: $ ./parrot perl6.pbc -e '.say for a 1 b 2.map: - $a, $b { $a ~ $b }' a1 b2 $ Thanks! Pm

[perl #61692] deep equality and junctions

2008-12-26 Thread Patrick R. Michaud via RT
Reopening ticket (and assigning to moritz++) -- we probably need a test for this somewhere before closing the ticket. Thanks, Pm

[perl #61692] deep equality and junctions

2008-12-26 Thread Patrick R. Michaud via RT
I had to revert the change that autothreaded infix:===, as the existing non-autothreaded version was being used to create Junctions (and resulted in an infinite loop). I suppose it's also a legitimate question as to whether infix:=== should autothread at all -- i.e., for something like: my $a

[perl #55962] [BUG] Match object, 'split' method generates Strings, not Perl6Str

2008-12-24 Thread Patrick R. Michaud via RT
The latter issue is now fixed in r34324: $ ./parrot perl6.pbc my @foo = 'AB'.split(''); @foo[0]++; say @foo; BB The other issue with match objects depends on how one invokes a named regex; I'm going to say we don't worry about that until we get a clarification on the spec. So, this issue

[perl #57978] Implement last/redo/next/continue control exceptions

2008-12-24 Thread Patrick R. Michaud via RT
On Thu Oct 23 07:13:46 2008, pmichaud wrote: On Wed, Oct 22, 2008 at 08:27:10PM -0700, Tim Nelson via RT wrote: On Sat Aug 16 07:29:31 2008, je...@perl.org wrote: - Needs last/redo/next/continue exceptions in PCT (PCT) This is done in rakudo; does that mean that this ticket is done?

[perl #57978] Implement last/redo/next/continue control exceptions

2008-12-24 Thread Patrick R. Michaud via RT
On Thu Oct 23 07:13:46 2008, pmichaud wrote: On Wed, Oct 22, 2008 at 08:27:10PM -0700, Tim Nelson via RT wrote: On Sat Aug 16 07:29:31 2008, je...@perl.org wrote: - Needs last/redo/next/continue exceptions in PCT (PCT) This is done in rakudo; does that mean that this ticket is done?

Re: [perl #57400] Working with %*ENV in Rakudo is difficult

2008-12-24 Thread Patrick R. Michaud
Instead of duplicating the method calls, a simpler approach might be to create a Perl6Env class that has Env and Mapping as parents, then change %*ENV to create a Perl6Env instead of a Env. This should cause %*ENV to inherit all of Mapping's methods. (For other examples, see how Mapping, List,

[perl #61618] [PATCH] Report the number of elements in an infinite range correctly

2008-12-22 Thread Patrick R. Michaud via RT
On Mon Dec 22 09:46:43 2008, cspencer wrote: The attatched patch lets an infinite Range (ie. (1..Inf)) report its length as Inf. It also adds temporary !FAIL cases when an infinite range is converted into a list or string context. The patch needs some rework before it can be accepted.

[perl #61576] +Inf and numeric comparisons in Rakudo

2008-12-22 Thread Patrick R. Michaud via RT
On Sun Dec 21 08:46:48 2008, masak wrote: pmichaud even so, we don't want the case of my $a = [].min; if $a 3 { say 'yes'; } pmichaud because right now +Inf is probably treated as 3 pmichaud rakudo: say +Inf 3; p6eval rakudo 34203: OUTPUT[1␤] * masak submits rakudobug Now working

[perl #60868] [].min and [].max think +Inf and -Inf (respectively) are spelled undef

2008-12-21 Thread Patrick R. Michaud via RT
On Sun Dec 21 08:26:41 2008, cspencer wrote: The attached patch fixes the issues below. min/max on an empty list should now return Inf/-Inf respectively. Applied in r34214, thanks! Pm

[perl #60732] Parrot doesn't distinguish hash access from array access

2008-12-20 Thread Patrick R. Michaud via RT
Now fixed in r34137, thanks! Pm

[perl #61128] some classes leak through from Parrot and cannot be declared in Rakudo

2008-12-20 Thread Patrick R. Michaud via RT
On Sun Dec 07 06:46:05 2008, masak wrote: masak rakudo: class Task {} [15:39] p6eval rakudo 33603: OUTPUT[Class Task already registered!␤␤current instr.: '!keyword_class' pc 13963 (src/builtins/guts.pir:352)␤] masak thei0s: thanks for that one :) * masak reports jnthn masak: Attach

[perl #61560] [PATCH] Move first/reduce methods and subs into the Any class

2008-12-20 Thread Patrick R. Michaud via RT
Patch applied in r34162. Assigning ticket to moritz++; we can close the ticket when we have confirmation of tests for this feature. Thanks! Pm

[perl #56684] [TODO] implement Capture and prefix:\\

2008-12-20 Thread Patrick R. Michaud via RT
The basics are indeed working, so I'm closing this ticket for now. When we have more specific instances of things that need to be fixed we can handle them then. Pm

[perl #61300] list assignment: arrays on LHS aren't filled properly

2008-12-20 Thread Patrick R. Michaud via RT
On Sat Dec 20 18:48:57 2008, cspencer wrote: Possible fix attached (though I'm nowhere near an expert on the grammar/actions files). Yes, the fix appears to work (and doesn't cause any failures); now applied in r34184. Thanks! Pm

Re: [perl #61300] list assignment: arrays on LHS aren't filled properly

2008-12-19 Thread Patrick R. Michaud
On Thu, Dec 11, 2008 at 02:28:18PM -0800, Moritz Lenz wrote: 23:27 moritz_ rakudo: my ($x, @y) = a b c d e; say @y.perl 23:27 p6eval rakudo 33813: OUTPUT[b␤] so @y gets only the first element, when in fact it should get all the rest. The problem is that array variables in lists are being

Re: [perl #61534] [PATCH] Add support for =END and =begin END

2008-12-19 Thread Patrick R. Michaud
On Fri, Dec 19, 2008 at 09:22:28AM -0800, Eric Hodges wrote: # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61534 I also added tests in revision R24492 file t/spec/S02-whitespace_and_comments/*_end.t S26 is somewhat out-of-date in several respects, and C=END is unfortunately one of

[perl #61364] sort() should implement a stable sort

2008-12-16 Thread Patrick R. Michaud via RT
On Sun Dec 14 11:47:58 2008, moritz wrote: S29 says: : If all criteria are exhausted when comparing two elements, sort should : return them in the same relative order they had in @values. or in terms of computer science, the sort should be stable. Rakudo r33895 doesn't do this, as a few

Re: [perl #61412] [BUG] binding hash values fails with 'rtype not set'

2008-12-16 Thread Patrick R. Michaud
On Tue, Dec 16, 2008 at 10:02:23AM -0800, Jeff Horwitz wrote: # New Ticket Created by Jeff Horwitz # Please include the string: [perl #61412] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61412 In r33954 this

[perl #61420] [PATCH] Add support for .succ and .pred for Int, Num and Str

2008-12-16 Thread Patrick R. Michaud via RT
Applied in r34011, thanks! Pm

[perl #54448] unicode and macosx

2008-12-15 Thread Patrick R. Michaud via RT
Some transcoding options have been added to HLLCompiler and Rakudo since this ticket was last addressed... could we determine if this is still an issue for macosx? If not, I'd like to close the ticket. Thanks! Pm

[perl #58464] Match bug, $0 empty

2008-12-15 Thread Patrick R. Michaud via RT
As far as I can tell, this issue was fixed with lexicals (RT #58352), so I'm marking this ticket resolved. If the issue appears again, please reopen this ticket or open a new one. Thanks! Pm

[perl #58846] Calling a rule 'sp' doesn't work too well in Rakudo

2008-12-15 Thread Patrick R. Michaud via RT
This looks like a rule invocation bug to me -- if I change the code to use $str ~~ / A::sp / then it appears to work fine: $ cat x grammar A { token foo { ^ [alnum||sp]+ $ }; token sp { ' ' | \n }; } say ?( ~~ /A::sp/); say ?(\n ~~ /A::sp/); say ?(foo ~~ /A::foo/); say ?(foo bar ~~

[perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-12-15 Thread Patrick R. Michaud via RT
Is t/spec/S29-conversions/ord_and_char.t still failing for anyone? If not, I'd like to close this ticket. Pm

[perl #61338] Grammar rules aren't inherited in Rakduo

2008-12-15 Thread Patrick R. Michaud via RT
If the rule is called correctly it appears to work fine: $ cat x grammar Foo { token foo { 'foo' } }; grammar Bar is Foo { token bar { foo | 'bar' } }; if 'foo' ~~ /Bar::bar/ { 'matched'.say; } $ ./parrot perl6.pbc x matched $ Closing ticket. Pm

[perl #61308] rule's capture ws

2008-12-15 Thread Patrick R. Michaud via RT
On Mon Dec 15 03:43:26 2008, baest wrote: Moritz Lenz via RT (09:23 2008-12-14): Martin Kjeldsen (via RT) wrote: # New Ticket Created by Martin Kjeldsen # Please include the string: [perl #61308] # in the subject line of all future correspondence about this issue. # URL:

[perl #57018] Empty -e argument sends rakudo into REPL mode

2008-12-15 Thread Patrick R. Michaud via RT
Now fixed in r33936, thanks! Pm

[perl #60820] Infinite pretzel recursion in Rakudo when filling a variable with an array in which one of the elements is the old value of that variable

2008-12-15 Thread Patrick R. Michaud via RT
On Tue Nov 25 18:21:04 2008, pmichaud wrote: On Tue, Nov 25, 2008 at 12:36:45PM -0800, Carl Mäsak wrote: masak rakudo: my $a = 5; $a = [ $a, 6 ]; say $a p6eval rakudo 33193: OUTPUT[maximum recursion depth Rakudo doesn't quite know how to interpolate values into lists yet, or how to

Re: [perl #61026] xx puts the same object in all spots, even value types

2008-12-05 Thread Patrick R. Michaud
On Wed, Dec 03, 2008 at 12:59:36PM -0800, Carl Mäsak wrote: masak perl6: my @a = 0 xx 4; @a[0] = 42; say @a.perl p6eval rakudo 33460: OUTPUT[[42, 42, 42, 42]␤] p6eval ..pugs: OUTPUT[\(42, 0, 0, 0)␤] p6eval ..elf 24144: OUTPUT[[42,0,0,0]␤] moritz_ jnthn: right jnthn masak: Oooh, that's a good

Re: [perl #61034] Null PMC access when assigning result from an empty given inside a do expression

2008-12-04 Thread Patrick R. Michaud
On Wed, Dec 03, 2008 at 03:54:16PM -0800, Carl Mäsak wrote: # New Ticket Created by Carl Mäsak # Please include the string: [perl #61034] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61034 Rakudo r33458:

Re: [perl #60964] racudo hungup after parse

2008-12-02 Thread Patrick R. Michaud
On Tue, Dec 02, 2008 at 02:08:08AM +0300, ruslan usifov wrote: sub test(@test is copy, $as) { @test[0] = 123; }; my @test = (1, 2, 3, 4); test(@test); print @test[0]; After that perl6.exe will produce: too few arguments passed (1) - 2 params expected Rakudo is correct here --

Re: [perl #60962] [BUG] Can't register multi methods (t/spec/S12-methods/multi.t fails)

2008-12-02 Thread Patrick R. Michaud
On Mon, Dec 01, 2008 at 04:25:19AM -0800, [EMAIL PROTECTED] (via RT) wrote: Rakudo as of r33417 fails t/spec/S12-methods/default-trait.t and t/spec/S12-methods/multi.t: I think this problem is very likely related to RT #60910, as t/spec/S12-methods/multi.t works fine in r33248 and r33385 but

Re: [perl #60922] Parrot doesn't distinguish hash access from array access in matches

2008-12-01 Thread Patrick R. Michaud
Just a note that I expect we will fix this when we implement slicing and the postcircumfix: methods. Pm

[perl #56612] [BUG] Closures are broken.

2008-11-25 Thread Patrick R. Michaud via RT
Now fixed in r33193: $ cat 55612 sub times($a,$b) { $a * $b; }; sub divide($a,$b) { $a / $b; } sub make_op($op) { sub($a,$b) { $op($a,$b) } }; my $t = make_op(times); say $t(21,2); my $div = make_op(divide); say $div(42,2); $ ./parrot perl6.pbc 55612 42 21 $ Thanks, Pm

[perl #58392] Recursion and for loops interact badly in Rakudo

2008-11-25 Thread Patrick R. Michaud via RT
Now fixed in r33193: $ cat 58392 sub f($l) { return() if $l = 0; say entering $l; for 1..3 { f($l-1); say looping in $l; } } f(2); $ ./parrot perl6.pbc 58392 entering 2 entering 1 looping in 1 looping in 1 looping in 1 looping in 2 entering 1 looping in 1 looping

[perl #59082] call bug in the loop

2008-11-25 Thread Patrick R. Michaud via RT
Now fixed in r33193: $ cat 59082 my $max = 13; cl() for 1..2; # print only \n! cl(); # print 13 sub cl { $max.say }; $ ./parrot perl6.pbc 59082 13 13 13 $ Thanks, Pm

[perl #58854] Lexicals workaround for gather

2008-11-25 Thread Patrick R. Michaud via RT
Removed workaround in r33203, thanks! Pm

[perl #60716] [TODO] Remove improper regex invocation syntax

2008-11-25 Thread Patrick R. Michaud via RT
On Thu Nov 20 19:59:03 2008, [EMAIL PROTECTED] wrote: This code works in Rakudo rev 32970: grammar GrammarOne { token foo { 'foo' }; } grammar GrammarTwo { token foobar { GrammarOne::foo 'bar' }; } 'foobar' ~~ GrammarTwo::foobar or die 'failed one-level namespace grammar'; But

Re: [perl #60670] Implement Texas quotes («») in Rakudo

2008-11-25 Thread Patrick R. Michaud
On Wed, Nov 19, 2008 at 07:23:38AM -0800, Carl Mäsak wrote: Rakudo r32873 cannot parse the Unicode version of Texas quotes («»), and misunderstands the ASCII-friendly variant (). $ ./perl6 -e 'say a $b c.perl' [a, \$b, c] $ ./perl6 -e 'my $b = foo; say a $b c.perl' 1 $ ./perl6 -e 'my $b =

[perl #57968] Fix issues with Int type constraint and Integer PMCs

2008-11-25 Thread Patrick R. Michaud via RT
Is this still an issue? If so, can we enumerate the exact things we want this ticket to address? Pm

Re: [perl #59360] Rakudo thinks that unrecognized --flags are files

2008-11-25 Thread Patrick R. Michaud
On Fri, Sep 26, 2008 at 02:55:36AM -0700, Carl Mäsak wrote: Rakudo r31409 assumes that all flags that it hasn't heard about are program files. $ ./perl6 --help ./perl6 Usage: perl6 [switches] [--] [programfile] [arguments] [...] $ ./perl6 --kelp # a kind of seaweed Error: file cannot be

Re: [perl #60820] Infinite pretzel recursion in Rakudo when filling a variable with an array in which one of the elements is the old value of that variable

2008-11-25 Thread Patrick R. Michaud
On Tue, Nov 25, 2008 at 12:36:45PM -0800, Carl Mäsak wrote: masak rakudo: my $a = 5; $a = [ $a, 6 ]; say $a p6eval rakudo 33193: OUTPUT[maximum recursion depth exceeded␤current instr.: 'parrot;List;get_string' pc 2808 (src/gen_builtins.pir:1885)␤] masak jnthn: I think you should see this.

[perl #60784] [spectest] Combine various subset/subtype tests.

2008-11-24 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #60784] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60784 Currently we have at least three test files dealing with subset and subtypes

Re: PGE HLLMapping

2008-11-18 Thread Patrick R. Michaud
On Mon, Nov 17, 2008 at 11:06:26PM -0600, Chris Dolan wrote: Patrick has mentioned several times that the proper solution to the problem is a representation of the high-level language that PGE can interact with. My thoughts about that HLL mapping: 1) we should invoke the other language's

Re: [perl #60618] Changed BigInt behaviour borked t/spec/S03-operators/increment.t

2008-11-18 Thread Patrick R. Michaud
On Mon, Nov 17, 2008 at 12:53:47PM -0800, Moritz Lenz wrote: Latest rakudo (r32779) dies on t/spec/S03-operators/increment.t: $ TEST_JOBS=1 make t/spec/S03-operators/increment.t t/spec/S03-operators/increment.rakudo 1..41 ok 1 - var incremented after post-autoincrement # TODO detect

Re: [perl #60570] Wrong error message about passed args when signature with named argument

2008-11-18 Thread Patrick R. Michaud
On Sun, Nov 16, 2008 at 01:23:28AM -0800, Ilya Belikin wrote: Hi! example: sub bar (@ar, :$a) { ... } bar(); #too few arguments passed (0) - 4 params expected If signature without named args, all right. Jonathan and I have confirmed that this is indeed a bug in error reporting, but we

[perl #60604] closure in grep?

2008-11-17 Thread Patrick R. Michaud via RT
On Mon Nov 17 01:51:40 2008, ihrd wrote: Hi! I start that message like bug report, but I have doubt. example: class A { method foo (@a) { @a.grep: { say @a }; # just for example, real code not so pointless } } my $o = A.new; $o.foo(['foo']); # foo $o.foo([1, 2]);

<    1   2   3   4   5   6   7   >