r25031 - docs/Perl6/Spec src/perl6 t/spec/S02-names_and_variables t/spec/S29-hash

2009-01-25 Thread pugs-commits
Author: lwall Date: 2009-01-26 05:06:43 +0100 (Mon, 26 Jan 2009) New Revision: 25031 Modified: docs/Perl6/Spec/S03-operators.pod src/perl6/Cursor.pmc src/perl6/STD.pm t/spec/S02-names_and_variables/names.t t/spec/S29-hash/exists.t Log: [STD, S03] more operator alignment and cleanup

Re: Passing Array objects to subs - what happens?

2009-01-25 Thread Larry Wall
On Mon, Jan 26, 2009 at 12:33:15AM +0100, Moritz Lenz wrote: : pugs, rakudo and elf all agree that [1..4].elems should be 4 - and I : agree too. : : What about : sub f(@a) { @a.elems }; say f([1, 2, 3, 4]) : Again all three implementations say that it's 4, and I'm confused. : : Now for : say ele

Re: three little operator questions

2009-01-25 Thread Larry Wall
On Sun, Jan 25, 2009 at 12:26:34AM -0800, Mark Lentczner wrote: > I've got three small operator questions before the new table of the > operators is done: > > > 1) Is C no longer an operator? It is still listed in S03, but > STD.pm doesn't parse it. Have it in my STD now. :) > 2) Is C<\> no

Passing Array objects to subs - what happens?

2009-01-25 Thread Moritz Lenz
pugs, rakudo and elf all agree that [1..4].elems should be 4 - and I agree too. What about sub f(@a) { @a.elems }; say f([1, 2, 3, 4]) Again all three implementations say that it's 4, and I'm confused. Now for say elems [1, 2, 3, 4] pugs says 4, rakudo says 1, and elf says "Undefined subroutine

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

2009-01-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62738] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62738 > TimToady: sometimes I'm unhappy about how restrictive the 'class Foo;' syntax is. the i

[perl #62742] man, max should accept code block that defines ordering

2009-01-25 Thread Dave Whipp
# New Ticket Created by "Dave Whipp" # Please include the string: [perl #62742] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62742 > According to S29, the "min" and "max" methods should accept the same ordering args as "s

[perl #62732] Rakudo gives a Null PMC access when trying to instantiate unknown class with C<::> in it

2009-01-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62732] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62732 > Rakudo r35994: $ perl6 -e 'A.new()' Could not find non-existent sub A [...] $ perl6 -e

[perl #62728] Rakudo gives Null PMC access when instantiating class imported from within class definition

2009-01-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62728] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62728 > Rakudo r35994: $ cat B.pm class B; $ perl6 -e 'use B; class A { method a { my $e = B.ne

[perl #62730] Internal Parrot errors leak through when passing some kinds of pairs

2009-01-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62730] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62730 > Rakudo r35994: $ perl6 -e 'Hash.new( a => "b" )' $ perl6 -e 'Hash.new( "a" => "b" )' ar

[perl #62700] .parse hangs on empty grammar

2009-01-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62700] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62700 > It's r35957, and Rakudo seems to hang on the following: $ perl6 -e 'grammar G {}; G.par

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

2009-01-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62702] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62702 > Rakudo r35957: $ perl6 -e 'grammar G { regex TOP {} }' Could not find non-existent sub

[perl #62704] Rakudo stores a grammar in $/ after .parse

2009-01-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #62704] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=62704 > r35957: $ perl6 -e 'grammar G { regex TOP { ^ } }; G.parse(""); say $/.WHAT; say $/ ~~

three little operator questions

2009-01-25 Thread Mark Lentczner
I've got three small operator questions before the new table of the operators is done: 1) Is C no longer an operator? It is still listed in S03, but STD.pm doesn't parse it. 2) Is C<\> no longer an operator? S03 lists it as a symbolic unary, but STD.pm doesn't parse it that way. 3) Sh