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
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
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
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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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 $/ ~~
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
13 matches
Mail list logo