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

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

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