[perl #76792] Rakudo has problems with general quantifier in regexes

2010-07-29 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #76792] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76792 > 09:07 <@szabgab> rakudo: say "a b,c,d" ~~ rule { a \w ** [\,] } 09:07 <+p6eval> rakudo 9

Re: Suggested magic for "a" .. "b"

2010-07-29 Thread Leon Timmermans
On Thu, Jul 29, 2010 at 3:24 AM, Darren Duncan wrote: > Some possible examples of customization: > >  $foo ~~ $a..$b :QuuxNationality  # just affects this one test I like that >  $bar = 'hello' :QuuxNationality  # applies anywhere the Str value is used > What if you compare a QuuxNationality St

Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the July 2010 release of "Rakudo Star", a useful and usable distribution of Perl 6. The tarball for the July 2010 release is available from . Rakudo Star is aimed at "early adopter

Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Xiao Yafeng
Congratulations! On Thu, Jul 29, 2010 at 8:23 PM, Patrick R. Michaud wrote: > On behalf of the Rakudo and Perl 6 development teams, I'm happy to > announce the July 2010 release of "Rakudo Star", a useful and usable > distribution of Perl 6.  The tarball for the July 2010 release is > available f

Rakudo Star silent exit on subset violation?

2010-07-29 Thread Ovid
I don't know if this is reported (I can't find a bug report for it). I just downloaded and compiled Rakudo Star. $ uname -a Linux localhost.bbc.co.uk 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010 i686 GNU/Linux The bug: subset Int::Positive of Int where { $_ > 0 }; sub

[perl #75900] Different semantics in multi vs sub

2010-07-29 Thread Will Coleda via RT
On Sun Jun 20 13:50:41 2010, jn...@jnthn.net wrote: > This may, or may not, be a case of the closures bug, but: > > use v6; > > my @my-array = 4,2,3,4; > > multi sub fsort([$p?,*...@r]) { > return fsort(@r.grep( {$_ <= $p} )),$p,fsort(@r.grep( {$_ > $p} )) > if $p || @r; > } > > say fsort(@

[perl #69863] Call with only named parameters has auto-threading issues

2010-07-29 Thread Will Coleda via RT
On Sat Oct 17 13:30:08 2009, jn...@jnthn.net wrote: > perl6 -e "sub foo(Int :$name) { say $name }; foo(name => 1|2)" > ResizablePMCArray: index out of bounds! > Now fails with: $ ./perl6 -e "sub foo(Int :$name) { say $name }; foo(name => 1|2)" Not enough positional parameters passed; got 0 but e

[perl #75806] [BUG] say %*VM in REPL say Method 'postcircumfix:<{ }>' not found for invocant of class 'Failure'

2010-07-29 Thread Will Coleda via RT
On Wed Jun 16 06:19:06 2010, q...@cono.org.ua wrote: > 16:09 < cono> moritz_: in REPL I have: Method 'postcircumfix:<{ }>' > not found for invocant of class 'Failure' > 16:09 < cono> but perl6 -e 'say %*VM' works fine > 16:09 <@moritz_> huh > 16:09 <@moritz_> please submit rakudobug > > git rev-p

Rakudo Star installation under MacOS X

2010-07-29 Thread Alberto Simões
Hello After installing Rakudo Star on my MacOS X under /opt/rakudo, and adding /opt/rakudo/bin to the PATH env, I get: [a...@rachmaninoff ~]$ perl6 src/io/api.c:306: failed assertion 'pmc' Backtrace - Obtained 22 stack frames (max trace depth is 32). 0 libparrot.dylib 0x00e0

[perl #76804] List assignment to "is copy" parameters with value 0 doesn't work

2010-07-29 Thread via RT
# New Ticket Created by Kodi Arfer # Please include the string: [perl #76804] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76804 > #perl6 on 29 July 2010: rakudo: sub f($a is copy = 1) { my $b; ($a, $b) = (1, 2);

Re: Suggested magic for "a" .. "b"

2010-07-29 Thread yary
On Thu, Jul 29, 2010 at 5:15 AM, Leon Timmermans wrote: > On Thu, Jul 29, 2010 at 3:24 AM, Darren Duncan > wrote: >> Some possible examples of customization: >> >> $foo ~~ $a..$b :QuuxNationality # just affects this one test > > I like that > >> $bar = 'hello' :QuuxNationality # applies anyw

Re: Rakudo Star installation under MacOS X

2010-07-29 Thread Alberto Simões
Although the same problem, the correct error message: dyld: Library not loaded: /Users/ambs/tmp/rakudo-star-2010.07/parrot-2.6.0/blib/lib/libparrot.dylib Referenced from: /opt/rakudo/bin/perl6 Reason: image not found Trace/BPT trap (the other error was given I had an old libparrot lying aroun

Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Gabor Szabo
Congratulations and thank you! I have started to collect the links to the press coverage of the release: http://www.perlfoundation.org/perl6/index.cgi?rakudo_star_press Please help me collect all the important links! Gabor

Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Jerome Quelin
On 10/07/29 07:23 -0500, Patrick R. Michaud wrote: > On behalf of the Rakudo and Perl 6 development teams, I'm happy to > announce the July 2010 release of "Rakudo Star", a useful and usable > distribution of Perl 6. The tarball for the July 2010 release is > available from

Re: Rakudo Star - a useful, usable, "early adopter" distribution of Perl 6

2010-07-29 Thread Kiffin Gish
Good stuff, let's celebrate! On Thu, 2010-07-29 at 07:23 -0500, Patrick R. Michaud wrote: > On behalf of the Rakudo and Perl 6 development teams, I'm happy to > announce the July 2010 release of "Rakudo Star", a useful and usable > distribution of Perl 6. The tarball for the July 2010 release is

Re: Suggested magic for "a" .. "b"

2010-07-29 Thread Aaron Sherman
On Wed, Jul 28, 2010 at 9:24 PM, Darren Duncan wrote: > Jon Lang wrote: > >> I don't know enough about Unicode to suggest how to solve this. >> >> Thankfully, I know little enough to take up the challenge ;-) > All I can >>> say is that my example above should never return a valid Range object

[perl #76804] tests available

2010-07-29 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in at least one of these files: t/spec/S03-operators/assign.t, t/spec/S06-traits/is-copy.t commit 6a51dccb70a504c421a1de0c62c532aa86c6fb8f Author: Kodi Date: Thu Jul 29 21:21:26 2010 + [t/spec] Added t

how to pkg/distrib Perl 6 modules?

2010-07-29 Thread Darren Duncan
Now that, with Rakudo Star, it is relatively straightforward to install and use Perl 6, I'm wondering about the next step. I want to start writing and distributing Perl 6 modules in an easily installable but non-bundled manner, much as how one can do so today with Perl 5 modules. What is the

Re: how to pkg/distrib Perl 6 modules?

2010-07-29 Thread Darren Duncan
Tadeusz Sośnierz wrote [off-list]: On 29-07-2010 14:37:54, Darren Duncan wrote: Now that, with Rakudo Star, it is relatively straightforward to install and use Perl 6, I'm wondering about the next step. I want to start writing and distributing Perl 6 modules in an easily installable but non-bun

Array membership test?

2010-07-29 Thread Mark J. Reed
Possibly a FAQ, but is there a simple way of asking if an item is contained in an array? I know of $x ~~ any(@array) and @array.grep({ $_ ~~ $x}), but those both seem a bit complicated for a conceptually simple test, so I'm wondering if I'm missing something. In other langs there's a keyword [ite

Re: Array membership test?

2010-07-29 Thread Jonathan Worthington
Mark J. Reed wrote: Possibly a FAQ, but is there a simple way of asking if an item is contained in an array? I know of $x ~~ any(@array) and @array.grep({ $_ ~~ $x}), but those both seem a bit complicated for a conceptually simple test, so I'm wondering if I'm missing something. Note that grep d

Re: Array membership test?

2010-07-29 Thread yary
On Thu, Jul 29, 2010 at 4:46 PM, Mark J. Reed wrote: > $x ~~ any(@array) I think this came up recently, and that's the way! -y

Re: Array membership test?

2010-07-29 Thread Mark J. Reed
On Thu, Jul 29, 2010 at 7:52 PM, Jonathan Worthington wrote: > Note that grep doesn't have to take a closure, but can also take just the > value you're looking for... > >> my @x = 1,2,3; say ?...@x.grep(2); say ?...@x.grep(4); > 1 > 0 Hm. could have sworn I'd tried that and it didn't work. > Th

Re: Array membership test?

2010-07-29 Thread Patrick R. Michaud
On Fri, Jul 30, 2010 at 01:52:18AM +0200, Jonathan Worthington wrote: > Mark J. Reed wrote: > >Possibly a FAQ, but is there a simple way of asking if an item is > >contained in an array? > > > my @x = 1,2,3; say ?...@x.grep(2); say ?...@x.grep(4); > 1 > 0 > > Though more efficient would be: >

[perl #76818] >>->> parse fail

2010-07-29 Thread via RT
# New Ticket Created by jn...@jnthn.net # Please include the string: [perl #76818] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76818 > 02:56 < jnthn> rakudo: my @a=1..5; @a >>+>> 1; @a >>->> 2 02:56 <+p6eval> rakudo da16

[perl #76808] Searching for libraries under MacOS X

2010-07-29 Thread via RT
# New Ticket Created by Alberto Simoes # Please include the string: [perl #76808] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76808 > Hello. Under Mac OS X, if installing rakudo (star) under /opt/rakudo, for instance, a

questions about array references and captures

2010-07-29 Thread R. Dresens
Hello, I've been experimenting with Perl 6 for quite a while, and so now and then I upgrade my Rakudo installation. Today, I upgraded to Rakudo star. I have some issues with the behavior related to array references and their actual replacements known as "captures" (as far as I'm correct). Suppo

Re: questions about array references and captures

2010-07-29 Thread Darren Duncan
R. Dresens wrote: I have some issues with the behavior related to array references and their actual replacements known as "captures" (as far as I'm correct). Captures are not replacements for Arrays in general; they serve different purposes. Use an Array when you want to have a simple ordered