Re: Getting Started - Synopsis

2008-03-31 Thread Agent Zhang
On Mon, Mar 31, 2008 at 8:59 PM, Ryan Richter [EMAIL PROTECTED] wrote: Sorry, it's actually the html stuff from pugs that's not making it onto feather, e.g. syn_index.html. Ah...Thanks for the catch :) The index page was formerly a symbolic link to the syn_index.html in audreyt's pugs tree

Re: Getting Started - Synopsis

2008-03-30 Thread Agent Zhang
On 30 Mar 2008 10:32:03 -, John M. Dlugosz [EMAIL PROTECTED] wrote: I've read copies of the Synopsis documents that I've found on the web somewhere. How do I synchronize with the life copies, and hack on them? Most of the Synopses are in the official svn repos,

Re: Getting Started - Synopsis

2008-03-30 Thread Agent Zhang
On Sun, Mar 30, 2008 at 9:23 PM, Ryan Richter [EMAIL PROTECTED] wrote: Actually, that cron job hasn't been working for a long time... I've just checked the cronjob mails and it seems to me that the update-syn script is working fine. So the Synopses are still fresh :) I think you meant the

Re: S02 questions and comments

2008-03-30 Thread Agent Zhang
On 30 Mar 2008 16:35:56 -, John M. Dlugosz [EMAIL PROTECTED] wrote: I'm reading S02.pod with version information: Last Modified: 17 Mar 2008 Number: 2 Version: 130 Meta-question 1: what is the succinct way to report this? Is the Version 130 enough? The SVN revision number is

Re: Micro-articles on Perl 6 Operators

2007-09-18 Thread Agent Zhang
On 9/18/07, Adriano Ferreira [EMAIL PROTECTED] wrote: Join me. The drafts of the introduction and the first article are here: http://ferreira.nfshost.com/perl6/intro.html http://ferreira.nfshost.com/perl6/zip.html I see the following snippet in zip.html: # import num2en from Perl 6

Re: Query regarding Java/perl interface

2007-06-19 Thread Agent Zhang
On 6/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I am sameer and am new to this group. It would realy help if any body can let me know is there a book or reference guiode where in i can get help regarding the perl/java interface and also about the tool named Java perl lingo. For the

Re: New version of Perl6::Perldoc uploaded

2007-04-26 Thread Agent Zhang
On 4/25/07, Damian Conway [EMAIL PROTECTED] wrote: Perl6::Perldoc v0.0.5 just hit the CPAN. I think you have forgot to update the version number in Perl6::Perldoc::Parser. It's still v0.0.1: http://search.cpan.org/src/DCONWAY/Perl6-Perldoc-v0.0.5/lib/Perl6/Perldoc/Parser.pm See line 7:

Re: New version of Perl6::Perldoc uploaded

2007-04-26 Thread Agent Zhang
On 4/25/07, Damian Conway [EMAIL PROTECTED] wrote: Perl6::Perldoc v0.0.5 just hit the CPAN. Apart from several important bug-fixes, notable new features include: For another issue, I see diakopter++ has committed the source of Perl6::Perldoc from CPAN to the Pugs SVN repos. Will you commit

Re: perl6-synopsis svn

2007-02-23 Thread Agent Zhang
On 2/23/07, Blair Sutton [EMAIL PROTECTED] wrote: Sorry if this is a silly question but I haven't been able to find the answer. Is the perl6-synopsis SVN repository publicly available or is it in the same repository as that of Parrot or Pugs? I think you're looking for this:

When should a LAST block be triggered?

2006-09-08 Thread Agent Zhang
Hello~ S04 says, A NEXT executes only if the end of the loop block is reached normally, or an explicit next is executed. Then how about LAST blocks? Do they execute only if the last iteration of the loop is reached normally, or an explicit last is executed? Will return/leave/goto quietly

Re: NEXT and the general loop statement

2006-09-07 Thread Agent Zhang
On 8/17/06, Larry Wall [EMAIL PROTECTED] wrote: I'd say 01234 on the theory that the 3-arg loop is really saying: $n = 0; while $n 5 { NEXT { ++$n } NEXT { print $n } } and also on the theory that block exiting blocks always run in reverse order. Dear Larry, I

Re: could 'given' blocks have a return value?

2006-08-29 Thread Agent Zhang
On 8/30/06, Mark Stosberg [EMAIL PROTECTED] wrote: Sometimes I use 'given' blocks to set a value. To save repeating myself on the right hand side of the given block, I found I kept want to do this: my $foo = given { } According to S04, given {} is at statement level, so you can't use it

Questions about statement modifiers

2006-08-29 Thread Agent Zhang
Hi, there~ I think S04 says too little about statement modifiers. Please comment on the following code samples. Are they valid Perl 6? do { say } for 1..3; { say } for 1..3; - $i { say $i } for 1..3; And how about similar variations for other statement modifiers, such as while,

Integrating the Pugs test suite into the Synopses

2006-08-22 Thread Agent Zhang
Hi, there~ When you see the title, you may wonder what that means. Here is the answer: http://feather.perl6.nl/~agentzh/syn/S04.html Search for links named like Show the snippet from ... and click on them to find out what will happen. :) Well, in short, we have divided the .t files in the

Re: Dumb doc question...

2006-08-22 Thread Agent Zhang
On 8/21/06, Agent Zhang [EMAIL PROTECTED] wrote: http://svn.berlios.de/svnroot/repos/unisimu/Perl/Syn/ This position is no longer maintained. Please see http://feather.perl6.nl/~agentzh/syn/ instead. The .html pages there are updated every *one* hour by the cron program on feather. So

Re: Dumb doc question...

2006-08-21 Thread Agent Zhang
On 8/17/06, Thom Boyer [EMAIL PROTECTED] wrote: On 8/16/06, Agent Zhang [EMAIL PROTECTED] wrote: On 8/17/06, Mark J. Reed [EMAIL PROTECTED] wrote: Where can I find a pod2html that groks the p6 version of POD? I want to format my fresh-from-svn copies of the doc... And there're also

Re: Dumb doc question...

2006-08-16 Thread Agent Zhang
On 8/17/06, Mark J. Reed [EMAIL PROTECTED] wrote: Where can I find a pod2html that groks the p6 version of POD? I want to format my fresh-from-svn copies of the doc... If you mean the POD files of perl 6 synopses, then pod2html only lacks the support for the =encoding directive. On my

[patch] do EXPR

2006-08-15 Thread Agent Zhang
Hello~ Here is a snippet from the Pugs test suite: { my $ret = eval 'do 42'; ok(!$ret, 'do EXPR should not work', :todo); # XXX or should it? Feels weird... } which motivated me to create the following patch for S04: Index: D:/projects/Perl6-Syn/S04.pod

Relative running order between traits blocks

2006-08-13 Thread Agent Zhang
Hello, everyone~ S04 doesn't explain the running order between the traits blocks FIRST, ENTER, NEXT, LEAVE, and LAST. So I couldn't be sure whether or not my tests in the Pugs test suit are correct. Please check out the following test file, which also servers as the first sketch of my proposal:

Apply the unpace rule into embedded comments

2006-08-13 Thread Agent Zhang
Hi, there~ While I was adding tests to t/syntax/comments.t in the Pugs test suit this afternoon, I suddenly came up with this form of embedded comments: my $foo = #\ (this is a comment) 42; is $foo, 42; Now that we have the excellent unspace rule, why can't we use it consistently with

Re: [svn:perl6-synopsis] r10758 - doc/trunk/design/syn

2006-08-09 Thread Agent Zhang
On 8/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: @@ -1339,8 +1339,8 @@ =head2 Undefined types -These can behave as values or objects of any class, but always return -a C.valid that evaluates to false. One can create them with the +These can behave as values or objects of any class,

Patch for S06 (and also S03)

2006-08-07 Thread Agent Zhang
Hi, there~ I've been reading S06 in the past few days. it almost killed me due to its difficulties. ;-) The patch to S06 (as well as S03) is given at the end of the mail. I've also included several fixes from TreyHarris++ and spinclad++. I really appreciate the help from #perl6. :D There's one

Re: Patch for S06 (and also S03)

2006-08-07 Thread Agent Zhang
On 8/8/06, Daniel Hulme [EMAIL PROTECTED] wrote: Sorry to patch the patch, but in -Other sigils binds only to the Ilast argument with that name: +Other sigil binds only to the Ilast argument with that name: the replacement makes no more sense than the original. Other sigils bind or Any other

Re: Patch for S06 (and also S03)

2006-08-07 Thread Agent Zhang
(Please ignore the previous mail. I was writing that in sleepy mode. Sorry.) On 8/8/06, Daniel Hulme [EMAIL PROTECTED] wrote: Sorry to patch the patch, but in -Other sigils binds only to the Ilast argument with that name: +Other sigil binds only to the Ilast argument with that name: the

Patch for S05

2006-08-01 Thread Agent Zhang
Hi, there~ This is my patch to S05. I've got many helps from gaal++, nothingmuch++, Aankhen``++, and many others on #perl6. :D It is mostly a story about typos as usual... :=) Cheers, Agent Index: D:/projects/Perl6-Syn/S05.pod

Legacy Dereferencing Syntax Used in S05

2006-08-01 Thread Agent Zhang
Hi, all~~ S05 makes widely use of the syntax @{ $capture } and %{ $capture } while other synopses remarkably don't. According to S02, {...} should normall be a closure or a hash subscript and S02 uses the syntax @( $arrayref ) and %( $hashref ) consistently. Is S05 simply out of sync or is the

Re: [svn:perl6-synopsis] r10487 - doc/trunk/design/syn

2006-07-27 Thread Agent Zhang
Audrey, I know the feeling of processing a large patch. :=) As Larry said, there're always nits. :( Here're even more fixes for S04: Index: D:/projects/Perl6-Syn/S04.pod === --- D:/projects/Perl6-Syn/S04.pod (revision

Re: [svn:perl6-synopsis] r10492 - doc/trunk/design/syn

2006-07-27 Thread Agent Zhang
On 7/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Author: audreyt Date: Thu Jul 27 10:44:22 2006 New Revision: 10492 Modified: doc/trunk/design/syn/S04.pod Log: * S04: More nits from agentzh++. (However, the period-inside-parens style, as seen in this sentence, is not changed.)

[patch] typos in S04

2006-07-26 Thread Agent Zhang
This is a patch for S04. Special thanks go to cjeris++ and other kind persons on #perl6 for reviewing this. Cheers, Agent Index: D:/projects/Perl6-Syn/S04.pod === --- D:/projects/Perl6-Syn/S04.pod (revision 10479) +++

Re: Patch for S03

2006-07-24 Thread Agent Zhang
/23 上午 7:33 時,Agent Zhang 寫到: Hello, everyone~ Here's my patch for S03. Thanks, applied (and the previous one on S02 too)! Audrey

Another patch for S02

2006-07-23 Thread Agent Zhang
Hi, all~ Another patch for S02 is given below. (And more patches for S03, S04, ... are coming soon.) Reading Synopses is fun, but finding typos is not so enjoyable. :P Cheers, Agent Index: D:/projects/Perl6-Syn/S02.pod === ---

Patch for S03

2006-07-23 Thread Agent Zhang
Hello, everyone~ Here's my patch for S03. Cheers, Agent Index: D:/projects/Perl6-Syn/S03.pod === --- D:/projects/Perl6-Syn/S03.pod (revision 10373) +++ D:/projects/Perl6-Syn/S03.pod (working copy) @@ -170,7 +170,7

Patch for S02

2006-07-19 Thread Agent Zhang
Hi, all~ I found some nits while copying Perl 6 Synopsis 2 by hand. The patch created by my TortoiseSVN for S02 has been pasted at the end of the mail. Cheers, Agent Index: D:/projects/Perl6-Syn/S02.pod === ---