Re: Something wrong with str.reverse

2010-06-17 Thread Hongwen Qiu
于 2010年06月18日 13:50, Richard Hainsworth 写道: 'flip' has more uses than just for strings. For example, it flips the key/value in a pair. Hence, my %h = Z 1,2,3,4; # a neat way of specifying a hash in terms of two lists say (map { .flip }, %h).perl; # the .perl gives you more information about

Is there already have these utilities?

2010-06-17 Thread Xi Yang
Like those in perl5: File::Spec;File::Path;Getopt::Long; P.S.: There seems has something wrong with my damned windows hotmail, as it weirdly ignores newlines... _ Hotmail: Trusted email with

Re: Something wrong with str.reverse

2010-06-17 Thread Richard Hainsworth
I dont think the specification regarding 'reverse' has ever changed. 'flip' has more uses than just for strings. For example, it flips the key/value in a pair. Hence, my %h = Z 1,2,3,4; # a neat way of specifying a hash in terms of two lists say (map { .flip }, %h).perl; # the .perl gives yo

Re: Something wrong with str.reverse

2010-06-17 Thread Richard Hainsworth
Nothing wrong with 'reverse', its acting exactly as specified. 'reverse' changes the order of a list. A string is considered a single entity in perl(6), unlike other languages where a string is an array of characters. So in order to get 'reverse' to work on a string, it first needs to be tur

Re: Something wrong with str.reverse

2010-06-17 Thread Hongwen Qiu
于 2010年06月18日 13:32, Xi Yang 写道: > Thanks!So the API has changed permanently? I think so. The "reverse" is for arrays, and "flip" is for Strings.

RE: Something wrong with str.reverse

2010-06-17 Thread Xi Yang
Thanks!So the API has changed permanently? > Date: Fri, 18 Jun 2010 13:29:11 +0800 > From: qiuhong...@gmail.com > To: perl6-us...@perl.org > Subject: Re: Something wrong with str.reverse > > 于 2010年06月18日 13:25, Xi Yang 写道: > > I'm using rakudo 2010_05, with parrot 2.4.0. I found the $str.reverse

Re: Something wrong with str.reverse

2010-06-17 Thread Hongwen Qiu
于 2010年06月18日 13:25, Xi Yang 写道: > I'm using rakudo 2010_05, with parrot 2.4.0. I found the $str.reverse just > don't work at all: > $ perl6 -e 'my $str="abcde"; say $str; say $str.reverse;'abcdeabcde Use say $str.flip;

Something wrong with str.reverse

2010-06-17 Thread Xi Yang
I'm using rakudo 2010_05, with parrot 2.4.0. I found the $str.reverse just don't work at all: $ perl6 -e 'my $str="abcde"; say $str; say $str.reverse;'abcdeabcde _ Hotmail: Powerful Free email

Re: Announce: Rakudo Perl 6 development release #30 ("Kiev")

2010-06-17 Thread Darren Duncan
Stefan O'Rear wrote: On Thu, Jun 17, 2010 at 04:55:38PM -0700, Darren Duncan wrote: So, is "Rakudo Star" meant to be a parallel release series, sort of like Perl 5.12.x vs 5.13.x are now, or are the monthly Rakudo releases we've been seeing going to be named "Star" at some point? I thought I r

Re: Announce: Rakudo Perl 6 development release #30 ("Kiev")

2010-06-17 Thread Stefan O'Rear
On Thu, Jun 17, 2010 at 04:55:38PM -0700, Darren Duncan wrote: > So, is "Rakudo Star" meant to be a parallel release series, sort of like > Perl 5.12.x vs 5.13.x are now, or are the monthly Rakudo releases we've > been seeing going to be named "Star" at some point? I thought I read > recently t

Re: underscore in numbers

2010-06-17 Thread Jonathan Worthington
Aaron Sherman wrote: The spec says, and NQP seems to implement (Rakudo, I think, picks up from NQP as defined in HLL-s0.pir, is this right?) that a single underscore is ignored between any two digits in a number, not between the radix and the number. However, it seems to me that this would be ve

Re: Announce: Rakudo Perl 6 development release #30 ("Kiev")

2010-06-17 Thread Darren Duncan
So, is "Rakudo Star" meant to be a parallel release series, sort of like Perl 5.12.x vs 5.13.x are now, or are the monthly Rakudo releases we've been seeing going to be named "Star" at some point? I thought I read recently that "Star" would be coming in June. -- Darren Duncan

r31337 -[S02] allow _ between radix and digits as suggested by ajs++

2010-06-17 Thread pugs-commits
Author: lwall Date: 2010-06-18 01:49:13 +0200 (Fri, 18 Jun 2010) New Revision: 31337 Modified: docs/Perl6/Spec/S02-bits.pod Log: [S02] allow _ between radix and digits as suggested by ajs++ Modified: docs/Perl6/Spec/S02-bits.pod

Announce: Rakudo Perl 6 development release #30 ("Kiev")

2010-06-17 Thread Carl Mäsak
On behalf of the Rakudo development team, I'm pleased to announce the June 2010 development release of Rakudo Perl #30 "Kiev". Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine (see ). The tarball for the June 2010 release is available from

underscore in numbers

2010-06-17 Thread Aaron Sherman
The spec says, and NQP seems to implement (Rakudo, I think, picks up from NQP as defined in HLL-s0.pir, is this right?) that a single underscore is ignored between any two digits in a number, not between the radix and the number. However, it seems to me that this would be very handy:  0b__000

Re: The obligation of free stuff: Google Storage

2010-06-17 Thread Kevan Benson
On 06/10/2010 05:07 AM, Mark J. Reed wrote: On Thursday, June 10, 2010, Leon Timmermans wrote: I agree it should be similar to normal FS interactoin to make matters as intuitive as possible, but I horrified by the idea of overloading open() that way But open is already overloaded in p5, with

Re: [perl #75820] [PATCH] removed unused code

2010-06-17 Thread Moritz Lenz
Jimmy Zhuo (via RT) wrote: > Subject: [PATCH] removed unused code Your patch added BOM to the file, which I removed. I've applied the rest of your patch. Cheers, Moritz

[perl #75828] [BUG] Rakudo does not print error message about stub code

2010-06-17 Thread via RT
# New Ticket Created by Alex Varyanick # Please include the string: [perl #75828] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75828 > 15:37 <@jnthn> rakudo: ("62.76.96.200", "62.76.96.201", "62.76.96.202" ... "62.76.96.2

[perl #75822] [BUG] Can't instantiate a role with two arguments in Rakudo

2010-06-17 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #75822] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75822 > rakudo: role A[$x, $y] { method x { say $x + $y } }; A[4, 5].new.x rakudo 012ea2: OUTP

[perl #75820] [PATCH] removed unused code

2010-06-17 Thread Jimmy Zhuo
# New Ticket Created by "Jimmy Zhuo" # Please include the string: [perl #75820] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75820 > >From d4912b43c0290b70d7263610e257e3ce32acbf5e Mon Sep 17 00:00:00 2001 From: Jimmy Zhuo

[perl #75818] [BUG] [PATCH] Zip operator Z should return a list of parcels

2010-06-17 Thread via RT
# New Ticket Created by J S # Please include the string: [perl #75818] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75818 > ciphertext: rakudo: (1,2,3 Z 4,5,6).perl.say p6eval: rakudo c9ee2e: OUTPUT«(1, 4, 2, 5, 3, 6)␤» c

[perl #75810] [PATCH] Multiple bug fixes (list branch)

2010-06-17 Thread via RT
# New Ticket Created by J S # Please include the string: [perl #75810] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75810 > Apply to branch list, commit ddb39d064c6e334f4d08 Fixes these bugs: core/operators.pm: #7567