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

2008-12-24 Thread David Whipp
# 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,

[perl #61658] X operator behaves like comma

2008-12-24 Thread Stephen Weeks via RT
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

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

2008-12-24 Thread David Whipp
# 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:

12 hackers hacking...

2008-12-24 Thread Mark J. Reed
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

[perl #61676] inequality chaining causes non-intuitive result with junctions

2008-12-24 Thread David Whipp
# 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

[perl #61656] "my" declaration at start of block following sub decl that doesn't end with semicolon

2008-12-24 Thread David Whipp
# 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: [

[perl #61658] X operator behaves like comma

2008-12-24 Thread David Whipp
# 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

[perl #61662] implicit binding of matches to $_

2008-12-24 Thread David Whipp
# 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

[perl #61654] Where-clauses only work correctly with blocks -- not smartmatch

2008-12-24 Thread David Whipp
# 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,

[perl #61644] Range.reverse returns a Str

2008-12-24 Thread Carl Mäsak
# 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

Re: Multi constraints and specificity

2008-12-24 Thread Larry Wall
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,

Re: Multi constraints and specificity

2008-12-24 Thread Mark J. Reed
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

Multi constraints and specificity

2008-12-24 Thread Mark J. Reed
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

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, an

Re: Optimizing PMC-based MMD

2008-12-24 Thread Patrick R. Michaud
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

Re: Optimizing PMC-based MMD

2008-12-24 Thread Allison Randal
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

Padre 0.22, Padre::Plugin::Parrot and Padre::Plugin::Perl6 released!

2008-12-24 Thread Gabor Szabo
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

[perl #61642] new hash .perl dump format and eval

2008-12-24 Thread via RT
# 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 {

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

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

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

[perl #61638] [PATCH] Fixed typos in docs

2008-12-24 Thread Saleem A. Ansari (via RT)
# 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

[perl #61628] Null PMC access when trying to numify Whatever stars in Rakudo

2008-12-24 Thread Carl Mäsak
# 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