# New Ticket Created by "David Whipp"
# Please include the string: [perl #61672]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61672 >
% ./perl6 -e '.say for .map: { $^a ~ $^b }'
a1
b2
% ./perl6 -e '.say for .map: -> $a,
This isn't a bug. That's the correct behavior for the capital X
operator, also called the cross operator. S03 defines it as:
"the X operator returns all possible lists formed by taking one element
from each of its list arguments"
Perl 5's lowercase x operator has split into Perl 6's x and xx, w
# New Ticket Created by "David Whipp"
# Please include the string: [perl #61670]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61670 >
Demonstrated by this test:
rakudo: .say for .map: { [ .split("") ] }
> rakudo 34338:
Inspired by a message over on the Applescript users list, I thought
I'd try to whip up a silly little P6 script to print out the 12 days
of Christmas. I tried to use as many P6isms as I could squeeze in,
but wanted it to work in Rakudo, which doesn't yet parse closure
traits or multimethods, so ha
# New Ticket Created by "David Whipp"
# Please include the string: [perl #61676]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61676 >
Error case:
say "improper collapse" if 10 < (5|25) < 20;
--> rakudo 34339: OUTPUT
# New Ticket Created by "David Whipp"
# Please include the string: [perl #61656]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61656 >
(rakudo 34337)
Strange parsing error:
sub x {
}
while 0 {
my $b = 1;
}
breaks: [
# New Ticket Created by "David Whipp"
# Please include the string: [perl #61658]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61658 >
(rakudo 34337)
./perl6 -e 'say ("2" X 3).perl'
["2", 3]
I expected a list of 3 elemen
# New Ticket Created by "David Whipp"
# Please include the string: [perl #61662]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61662 >
(rakudo 34337)
>>> $_ = "a"; say /a/ ?? "yes" !! "no"
yes
>>> $_ = "a"; say /b/ ?? "ye
# New Ticket Created by "David Whipp"
# Please include the string: [perl #61654]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61654 >
(rakudo 34337)
Examples:
sub foo( $x where { $_ eq "x" } ) { say "X" }
x("x")
works,
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61644]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61644 >
rakudo: say (1..8).reverse.WHAT
rakudo 34331: OUTPUT«Str»
* masak submits rakudobug
On Wed, Dec 24, 2008 at 06:57:39PM -0500, Mark J. Reed wrote:
: Ok, it works with a $^var in place of $x in the where block.Should
: the parameter be visible there under its declared name? If not, then
: this is clearly just pilot error, and never mind...
It's supposed to be visible by then,
Ok, it works with a $^var in place of $x in the where block.Should
the parameter be visible there under its declared name? If not, then
this is clearly just pilot error, and never mind...
On Wed, Dec 24, 2008 at 6:47 PM, Mark J. Reed wrote:
> I thought this would work:
>
> multi th($x where
I thought this would work:
multi th($x where { $x % 10 == 1 }) { "{$x}st" }
multi th($x where { $x % 10 == 2 }) { "{$x}nd" }
multi th($x where { $x % 10 == 3 }) { "{$x}rd" }
multi th($x) { "{$x}th" }
say th(22)
but it yields "22th". Is this a Rakudo bug or me not understanding
how constraints w
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, an
On Wed, Dec 24, 2008 at 09:55:58AM -0600, Allison Randal wrote:
>> Within the cmp op bodies, we *know* the arity and most of the types of MMD-
>> participant arguments at compile time. We can get the types of PMC
>> participants within the body of the op itself. Thus we could avoid
>> most of
chromatic wrote:
Within the cmp op bodies, we *know* the arity and most of the types of MMD-
participant arguments at compile time. We can get the types of PMC
participants within the body of the op itself. Thus we could avoid most of
the argument marshalling and counting and analysis if we
Hi,
as this is relevant to you as well, let me send this announcement here too.
Yesterday we have released v0.22 of Padre the Perl IDE written in Perl 5.
http://padre.perlide.org/
There are many changes as usual but the two important ones for the Parrot/Perl 6
developers are related mostly to tw
# New Ticket Created by Ilya Belikin
# Please include the string: [perl #61642]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61642 >
Hi,
I am trying force November works on r34320, and look like found rakudobug:
> say {
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 ticke
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 ticke
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 see
# New Ticket Created by Saleem A. Ansari
# Please include the string: [perl #61638]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61638 >
Fixed typos in docs.
book/ch01_overview.pod | 10 +-
book/ch03_pir_bas
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61628]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61628 >
rakudo: +*
rakudo 34276: OUTPUT«Null PMC access in get_number() [...]
* masak cackles
23 matches
Mail list logo