Re: [PATCH] typo fix for spec S05

2010-11-22 Thread Hongwen Qiu
On 11/22/2010 04:01 PM, Moritz Lenz wrote: Although it looks like a typo, to vary is indeed the correct verb here I'm not a native English speaker, so sorry for the noise.

[PATCH] typo fix for spec S05

2010-11-21 Thread Hongwen Qiu
From 110a2564bc622c3b5ed659d049f99baf2e1a7dbf Mon Sep 17 00:00:00 2001 From: Hongwen Qiu qiuhong...@gmail.com Date: Mon, 22 Nov 2010 15:32:47 +0800 Subject: [PATCH] [S05] typo fix. --- S05-regex.pod |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/S05-regex.pod b/S05

[PATCH] [t] [S05] change one test for :state declaration, which supposed to fail.

2010-11-21 Thread Hongwen Qiu
I suppose DeclaratorTest1.parse('c3') should be OK, so change it to DeclaratorTest1.parse('c4'). From 1dc270aa5a7927b21c2076c8d20e10d5027b044e Mon Sep 17 00:00:00 2001 From: Hongwen Qiu qiuhong...@gmail.com Date: Mon, 22 Nov 2010 15:42:34 +0800 Subject: [PATCH] [S05] change one test for :state

Re: [perl #77738] Bug report.

2010-09-09 Thread Hongwen Qiu
于 2010年09月09日 03:44, Joe Rahmeh (via RT) 写道: # New Ticket Created by Joe Rahmeh # Please include the string: [perl #77738] # in the subject line of all future correspondence about this issue. #URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77738 1. Rakudo version: This is Rakudo

Re: [perl6/specs] 761178: remove some some duplicate words words

2010-09-08 Thread Hongwen Qiu
于 2010年09月08日 13:41, Jason Switzer 写道: On Tue, Sep 7, 2010 at 11:29 AM, Moritz Lenzmor...@faui2k3.org wrote: Brandon S Allbery KF8NH wrote: On 9/7/10 08:17 , nore...@github.com wrote: Commit: 7611788411e5aff5f3ae150e2da9929ee546d6d8

[perl #77464] Rakudo Star: Trim down disk space once installed

2010-08-27 Thread Hongwen Qiu via RT
在 2010-08-26 17:54:57 星期四 时,jk...@verizon.net 写到: Of note: (a) the perl6 executable gets built in the top-level directory; (b) I have a full Parrot checkout and build under parrot-2.7.0; (c) I have *another* perl6 executable under rakudo/ ... ... and (d) a lot more under install/. Do

An implement of $*ARGFILES for Rakudo

2010-06-28 Thread Hongwen Qiu
This is my trying to implement $*ARGFILES for Rakudo for this week's contribution to Perl 6. class IO::ArgFiles { has $!filehandle; has $!filename; has @!filenames; method new(@filenames) { self.bless(*, filenames = @filenames || '-'); } method get() {

[patch]: typo of perl6 book

2010-06-21 Thread Hongwen Qiu
diff --git a/src/subs-n-sigs.pod b/src/subs-n-sigs.pod index b6a91cb..128f1ae 100644 --- a/src/subs-n-sigs.pod +++ b/src/subs-n-sigs.pod @@ -141,7 +141,7 @@ variables in your signature are read-only references to the passed arguments. You cannot modify them passed-in values within the

Re: Something wrong with str.reverse

2010-06-18 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 = a b c d 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

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;

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.

[BUG]: Interpolation scalar before [- is incorrect (maybe).

2010-06-04 Thread Hongwen Qiu
$ perl6 my $a = 0;say $a [- Unable to parse infixish, couldn't find final ']' at line 1 my $a = 0; say $a [-] 0 [-] my $a = 0; say $a [--] Unable to parse infixish, couldn't find final ']' at line 1 my $a = 0;say $a [ 0 [ my $a = 0;say $a 0 say [ [ say [- [- Is the parsing error given by

This Week's Contribution to Perl 6 Week 4: Implement :samecase for .subst

2010-05-26 Thread Hongwen Qiu
Hi! Attached are code and tests for my trying of implementing the :samecase for .subst. diff --git a/src/core/Cool-str.pm b/src/core/Cool-str.pm index 918ec68..42a2321 100644 --- a/src/core/Cool-str.pm +++ b/src/core/Cool-str.pm @@ -22,7 +22,7 @@ augment class Cool { } } -multi

[PATCH]: Fixed a useless test for S06-multi/type-based.t

2010-05-06 Thread Hongwen Qiu
The original test file may introduced a typo for wins2. Hope the attached patch can be useful. I wonder if the patches for test files should go here. Best regards! Hongwen Qiu Index: type-based.t === --- type-based.t(revision

Something about the cascade calling of sort() in rakudo.

2010-03-23 Thread Hongwen Qiu
Hi, I'm new to Perl6. And just ran the first example in the perl6 book. But, it refused to work. It complains as follows: Too many positional parameters passed; got 2 but expected between 0 and 1 I find out that the problem is in the line: my @sorted = @names.sort({ %sets{$_} }).sort({