[perl #57974] Implement missing infix: operator

2008-12-09 Thread [EMAIL PROTECTED] via RT
Just investigated this and we both implement this and run spectests for it, so closing ticket.

[perl #60092] $/ cannot be assigned to other vars or passed as a parameter

2008-12-05 Thread [EMAIL PROTECTED] via RT
On Fri Oct 24 10:30:00 2008, [EMAIL PROTECTED] wrote: > > Chris Dolan writes the following to p6u: > > > > I'm learning about Match objects today. I can't assign $/ to a > > variable or pass it to a method. > > This sounds a lot like > [perl #57094] [BUG] infix:= converts a PGE::Match to a Str, n

[perl #58276] [BUG] Can't iterate over list that was passed as a subroutine argument

2008-12-05 Thread [EMAIL PROTECTED] via RT
On Fri Aug 22 15:13:14 2008, [EMAIL PROTECTED] wrote: > Rakudo r30452: > > > sub a(@b) { for @b { .say } }; my @x = (1, 2, 3); a(@x) > 1 2 3 > > That should be > 1 > 2 > 3 > This now works (probably has for a while, I just spotted the ticket and thought "ah, didn't we fix that one?"), but do we

[perl #57094] [BUG] infix:= converts a PGE::Match to a Str, not a Match

2008-12-05 Thread [EMAIL PROTECTED] via RT
Hi, After checking with the latest Rakudo, I think this issue is now resolved. We get: my $x = "food"; my $y = $x.match(/$=[f](o+)/); say $y.WHAT; # Match say $y; # foo say $y; # f say $y[0]; # oo However, this still failed: say $y ~~ Match; # gave 0 So I fixed that in 33504, and I think this

[perl #60718] [PATCH] better error message for .new on undefined class

2008-11-26 Thread [EMAIL PROTECTED] via RT
On Thu Nov 20 20:46:18 2008, [EMAIL PROTECTED] wrote: > If you accidentally try to instantiate a class that has not been > defined, but the namespace for that class has been vivified, then you > get an obscure error message: > ... > With the attached patch, Rakudo instead dies with a more infor

[perl #60150] Rakudo can only call non-lexical &-sigil subs

2008-11-26 Thread [EMAIL PROTECTED] via RT
On Sun Oct 26 14:26:27 2008, masak wrote: > Rakudo r32151 is only able to call &-sigil subs if they have not been > initialized with "my". > > $ ./perl6 -e '&b = &say; &b(5)' # works > 5 > $ ./perl6 -e 'my &b = &say; &b(5)' # fails > Lexical 'b' not found > [...] > This was fixed earlier today,

[perl #60620] @a[1].=subst parsefail

2008-11-26 Thread [EMAIL PROTECTED] via RT
On Mon Nov 17 13:49:03 2008, masak wrote: > Rakudo r32733: > > rakudo: my @a; @a[0].=subst( '', '') > OUTPUT[PAST::Compiler can't compile a null node␤current > instr.: > [...] Ah, yes, .= was only handling a scalar on the LHS. Thanks to PAST enhancements since I first implemented .=, it was nice

[perl #60528] Rakudo wrongly permits mutation of readonly variables in some cases

2008-11-16 Thread [EMAIL PROTECTED] via RT
On Fri Nov 14 05:58:21 2008, pmichaud wrote: > On Thu, Nov 13, 2008 at 03:21:45PM -0800, Carl Mäsak wrote: > > Rakudo r32629 sometimes dies when assigning a readonly variable to > > itself, and sometimes not. > > > > $ ./perl6 -e 'for -> $foo { $foo = $foo; say $foo }' # dies, good > > Cannot ass

[perl #58396] Closure parameters do not work in if statements in Rakudo

2008-11-16 Thread [EMAIL PROTECTED] via RT
On Wed Aug 27 06:17:33 2008, masak wrote: > r30590: > $ ./perl6 -e 'sub testa { return 5 }; if testa() -> $a { say $a }' > Statement not terminated properly at line 1, near "-> $a { sa" > [...] > This now works (thanks to pmichaud++) - resolving ticket. Jonathan

[perl #59484] [TODO] Implement $?PACKAGE in Rakudo

2008-11-11 Thread [EMAIL PROTECTED] via RT
On Tue Sep 30 06:04:03 2008, masak wrote: > ...as described in S02: > > > > Package declarations are not implemented yet, but even without them, > $?PACKAGE could be useful in the following case: > > class A { say "This is class $?PACKAGE" } > Impl

[perl #58388] [BUG] Num typecheck doesn't accept integers

2008-11-11 Thread [EMAIL PROTECTED] via RT
On Wed Aug 27 02:29:23 2008, stifynsemons wrote: > my Num $x = 3; > causes a typecheck failure, whereas: > Fixed in r32528. Thanks, Jonathan

[perl #58918] [BUG] Can't use a subdir class twice

2008-11-04 Thread [EMAIL PROTECTED] via RT
On Tue Sep 16 05:36:02 2008, stifynsemons wrote: > In r31096, use allows a program to use module A and module B, and allows > module B to use module A, when module A defines a method as long as all > three files are in the same directory. However, when you try and put module > A and module B in th

[perl #60018] [PATCH] Update README test information

2008-10-20 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #60018] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60018 > I was having trouble figuring out how to run individual tests. Moritz Lenz explai

[perl #58828] Make calleable &-sigil parameters work in rakudo

2008-09-18 Thread [EMAIL PROTECTED] via RT
On Sat Sep 13 04:33:53 2008, masak wrote: > In Rakudo r31066, this works... > > $ ./perl6 -e 'sub a($b) { $b(5) }; a(&say)' # cool! > 5 > > ...but not the following: > > rakudo: sub a(&b) { b(5) }; a(&say) > OUTPUT[Could not find non-existent sub b␤current instr.: > 'a' pc 139 >

[perl #58824] Inheriting from imported classes is broken in Rakudo

2008-09-18 Thread [EMAIL PROTECTED] via RT
On Sat Sep 13 03:41:27 2008, masak wrote: > Rakudo r31066 is experiencing problems with classes defined in "use"d > modules. > > $ perl6 -e 'class A {}; class B is A {}' # this works > $ cat A.pm # but... put the class A in a file... > class A {} > $ ./perl6 -e 'use A; class B is A {}' # ...and it

[perl #58924] [BUG] my %a; %a = 't'; for keys %a { .say } misbehaving

2008-09-18 Thread [EMAIL PROTECTED] via RT
On Tue Sep 16 08:56:29 2008, cognominal wrote: > It prints "0\n" instead of the expected "i\n" > Fixed this in 31227, and values, and also cleaned up kv. They are now multis that we use !EXPORT on (kv had been written specially rather than just exporting the kv method on Mapping - just deleted tha

[perl #58936] [TODO] promote 'use' to happen at compile time

2008-09-18 Thread [EMAIL PROTECTED] via RT
On Tue Sep 16 13:04:11 2008, [EMAIL PROTECTED] wrote: > ... > But move class Dog { ... } into Dog.pm and import it with > 'use Dog;' and Rakudo is like 'Attempt to inherit from > non-existent parent class'. > This bug is like fixed. Well, kinda. Your example now runs. However, modules using modul

[perl #58998] [TODO] remove underscores from numbers to make imcc happy

2008-09-18 Thread [EMAIL PROTECTED] via RT
On Thu Sep 18 00:49:59 2008, [EMAIL PROTECTED] wrote: > r31220: > > say 23_433 > 23433 > > say 23_433.4_4 > error:imcc:syntax error, unexpected IDENTIFIER, expecting '\n' ('_433') > in file 'EVAL_13' line 12 > 23 > > Obviously the underscores in the fractional part of the number needs to >

[perl #58936] [TODO]

2008-09-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58936] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58936 > With Rakudo 0.7.0-devel r31065 inheritance works as in this single file: class

[perl #58352] The inside of a while loop loses $/ in Rakduo

2008-09-11 Thread [EMAIL PROTECTED] via RT
On Wed Aug 27 02:10:10 2008, moritz wrote: > On Mon Aug 25 01:37:17 2008, masak wrote: > > r30528: > > $ ./perl6 -e 'while ("test" ~~ /(es)/) { say $0; exit; }' > > Null PMC access in get_pmc_keyed_int() > > [...] > > Segmentation fault > > > > FWIW, the error shows up in r30503, whose slightly Or

[perl #57338] parrot segfaults after nonexistent method is called from within sub invoked without parens in rakudo

2008-09-11 Thread [EMAIL PROTECTED] via RT
On Sun Jul 27 08:06:04 2008, masak wrote: > This also works, but segfaults: > > $ ./perl6 -e 'class A {}; sub c { say A.new.b() }; c' > Method 'b' not found for invocant of class 'A' > current instr.: 'c' pc 99 (EVAL_13:42) > called from Sub '_block11' pc 17 (EVAL_13:11) > called from Sub 'parrot;

[perl #58602] subset types and multi dispatch don't mix

2008-09-11 Thread [EMAIL PROTECTED] via RT
On Fri Sep 05 08:26:34 2008, [EMAIL PROTECTED] wrote: > Rakudo r30787 dies on multi dispatch when subset types are involved: > Yes; this ticket depends on us switching over to the new multi-dispatcher (perl6multisub.pmc), which does handle this case. I hope to get that sorted out in the near futur

[perl #57992] Implement infinite ranges

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57992] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57992 > - awaiting Whatever implementation

[perl #57990] Implement prefix:<\> operator

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57990] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57990 > - Need some clarity in spec and spectests for Capture objects

[perl #57988] Implement Rat data type

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57988] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57988 > - awaiting clearer spec/understanding of the relationship between Num and Rat

[perl #58024] Implement .perl on code objects

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58024] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58024 > - Need a clarification of what .perl should return here

[perl #58006] Fix .{"key"} parsefail when (hash index into $_)

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58006] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58006 > - likely parser bug (Rakudo grammar.pg)

[perl #57998] Fix modulo bugs and MMD-related bugs for += and -= (S03-operators\arith.t)

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57998] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57998 > - Awaiting parser improvements to properly parse and handle infix_postfix_meta_oper

[perl #57994] Implement/fix adverbial blocks

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57994] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57994 > - Needs update to grammar, may need to wait for LTM in PGE

[perl #58022] Implement return type coercion ("as") and constraint ("of")

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58022] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58022 >

[perl #58000] Comparison operators on junctions should return junction of True/False

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58000] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58000 > - Needs junction dispatcher

[perl #58018] Fix MMD-related bugs in S03-operators\range.t

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58018] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58018 > - Need to refactor comparison ops in rakudo to avoid or handle 'cmp'

[perl #58016] Implement CATCH blocks

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58016] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58016 > - Need some parser improvements, updates to 'try' handling

[perl #57996] Make m/.../ syntax for constructing a regex work

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57996] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57996 > - Update grammar.pg (short-term), or wait for STD.pm integration

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

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57968] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57968 > - awaiting .HLL capabilities

[perl #58002] Implement state variables

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58002] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58002 > - Need to fix lexical and initialization issues (Parrot)

[perl #58010] Implement ::?CLASS

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58010] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58010 > - Update in actions.pm to define compiler variable

[perl #57976] Implement infix:

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57976] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57976 > - Requires some specialized structures, perhaps a new PAST::Op pasttype (PCT)

[perl #57974] Implement missing infix: operator

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57974] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57974 > - Awaiting parser improvements to properly parse and handle infix_postfix_meta_oper

[perl #57972] Implement eqv and === operators

2008-08-16 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57972] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57972 > - No dependencies

[perl #57340] Empty {} or pair {1=>2} does not create anonymous hash in rakudo

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Sun Jul 27 08:27:18 2008, masak wrote: > From S06 : > > ] {...} is always a block. However, if it is completely empty or > consists > ] of a single list, the first element of which is either a hash or a > pair, it > ] is executed immediately to

[perl #57388] Namespaces don't work in class declarations

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Tue Jul 29 11:27:34 2008, [EMAIL PROTECTED] wrote: > Hi there, declaring classes in other namespaces except the toplevel > one results in "emtpy" classes (revision 29850). > > > This code: > > class Foo::Bar { method foo {} } > my $b = Foo::Bar.new; > $b.foo; > > > Gives this stacktrace >

[perl #54736] error on winxp with perl6.exe 0.6.2

2008-08-08 Thread [EMAIL PROTECTED] via RT
Hi, On Fri May 23 14:26:47 2008, [EMAIL PROTECTED] wrote: > a simple > > say 6; > > throws > > Null PMC access in isa() > current instr.: 'parrot;Perl6Object;make_proto' pc 58 > (src/gen_builtins.pir:81) > called from Sub 'parrot;Perl6Str;onload' pc 1181 (src/gen_builtins.pir:804) > called fro

[perl #56944] [BUG] integer arithmtics should result in integers

2008-08-08 Thread [EMAIL PROTECTED] via RT
On Tue Jul 15 04:12:36 2008, [EMAIL PROTECTED] wrote: > Rakudo r29470: > $ ../../parrot perl6.pbc -e 'say (1+1).WHAT' > Num > $ ../../parrot perl6.pbc -e 'say (1*1).WHAT' > Num > $ ../../parrot perl6.pbc -e 'say (1**1).WHAT' > Num > > All of these should print Int instead. > And they do as of r30

[perl #57652] [BUG] successfull 'when' does not skip the following tests.

2008-08-06 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57652] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57652 > Yesterday, I downloaded and compiled perl6 of parrot-0.6.4. Testing some basic perl

[perl #57626] [BUG] perl6 -e 'say "hello"' ==> Segmentation fault

2008-08-05 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #57626] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57626 > * Today I downloaded parrot-0.6.4 to my Debian PC. * I also installed the libicu-de

[perl #57170] inheriting from a non-defined class should give a nice error message

2008-07-26 Thread [EMAIL PROTECTED] via RT
On Wed Jul 23 00:50:02 2008, masak wrote: > It turns out that 'class A is B {}; class B {}' is not a valid Perl 6 > program. > > @messages > masak asked 7h 17m 55s ago: is `class A is B {}; class B > {}` allowed in Perl 6? > @tell masak "is B" is not allowed unless B is already known > to be a

[perl #57126] Rakudo should give a nice error about lexical subs not being implemented yet, but doesn't

2008-07-26 Thread [EMAIL PROTECTED] via RT
Hi, Thanks for reporting and helping track this one down - it was a fix in PCT in the end (in fact to the line immediately following the one you'd identified). So r29755 solves this, and probably will solve other similar issues too. Thanks! Jonathan

[perl #57124] Multi sub declaration without parens parsefails

2008-07-26 Thread [EMAIL PROTECTED] via RT
On Sat Jul 19 07:23:10 2008, masak wrote: > While > > $ ./perl6 -e 'sub f {}' > > works, > > $ ./perl6 -e 'multi sub f {}' > > doesn't. Thanks for reporting, and fixed in r29756. Jonathan

[perl #57122] lone 'multi' is not understood correctly by rakudo

2008-07-26 Thread [EMAIL PROTECTED] via RT
On Sat Jul 19 07:21:52 2008, masak wrote: > While > > $ ./perl6 -e 'multi sub f() {}' > > works like it should, > > $ ./perl6 -e 'multi f() {}' > Statement not terminated properly at line 1, near "{}" Thanks for reporting, and fixed in r29752. (For anyone curious about the semantics, the approp

[perl #56266] rand gets "invoke() not implemented in class 'Float' " - Revision: 28671

2008-06-25 Thread [EMAIL PROTECTED] (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #56266] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=56266 > This was working: $ ./perl6 -e 'say rand(3)' invoke() not implemented in class 'Fl

[perl #54312] [PATCH] Implementation of 'infix:=>' for Rakudo

2008-05-21 Thread [EMAIL PROTECTED] via RT
On Fri May 16 17:27:07 2008, bacek wrote: > There is implementation of 'infix:=>' for Rakudo > Thanks for this. Unfortunately, this doesn't quite work; we need to handle this in the actions (for the time being, anyway) so we can use pairs constructed in this way as a named parameter to a call. I'v

[perl #50220] patch implementing get_string for rakudo junctions

2008-05-06 Thread [EMAIL PROTECTED] via RT
Hi, I wound up tweaking this patch into shape, as discussed in previous patches, and applying it with the tweaks. So now Junctions have .perl. :-) Thanks! Jonathan

[perl #53018] grammar not behaving as class

2008-05-06 Thread [EMAIL PROTECTED] via RT
Hi, I've now made grammars a whole lot more class like. They get proto-objects and inheritance works too, plus the regexen go in the correct namespaces. There is some work to do getting Foo::bar to work now (where Foo is a grammar name and bar is a regex name in the grammar), but that's a separate

[perl #53748] rakudo bug: can't assign undef to Int variable

2008-05-06 Thread [EMAIL PROTECTED] via RT
Hi, This has been resolved as of r27337. Thanks! Jonathan