Re: Synchronized / Thread syntax in Perl 6

2006-06-03 Thread Paul Hodges
--- Larry Wall <[EMAIL PROTECTED]> wrote: > On Sat, Jun 03, 2006 at 03:51:45PM -0700, Paul Hodges wrote: > : { no threads; > :print @_.»(); > : } > > It seems a bit odd to use a construct for its syntactic sugar value > but take away its semantics... > > If you just need ordering, this (o

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

2006-06-03 Thread larry
Author: larry Date: Sat Jun 3 20:43:33 2006 New Revision: 9466 Modified: doc/trunk/design/syn/S03.pod Log: typo from scook0++ Modified: doc/trunk/design/syn/S03.pod == --- doc/trunk/design/syn/S03.pod(origin

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

2006-06-03 Thread larry
Author: larry Date: Sat Jun 3 20:32:43 2006 New Revision: 9465 Modified: doc/trunk/design/syn/S03.pod Log: Revisions to definitions of simple scalar. Modified: doc/trunk/design/syn/S03.pod == --- doc/trunk/design/sy

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

2006-06-03 Thread Stuart Cook
On 6/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: +$a # simple scalar variable +@a[123]# single literal subscript +%a{'x'}# single literal subscript +%a # single literal subscript +@a[+TERM] # single term coerced to numeric for array +%a{~TERM}

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

2006-06-03 Thread larry
Author: larry Date: Sat Jun 3 19:45:11 2006 New Revision: 9463 Modified: doc/trunk/design/syn/S03.pod Log: Change default lvalue parsing to default to list, with short list of scalars. Modified: doc/trunk/design/syn/S03.pod ===

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

2006-06-03 Thread larry
Author: larry Date: Sat Jun 3 19:13:10 2006 New Revision: 9462 Modified: doc/trunk/design/syn/S12.pod Log: Clarified scoping of "has $x" and friends. Modified: doc/trunk/design/syn/S12.pod == --- doc/trunk/design/sy

Re: Synchronized / Thread syntax in Perl 6

2006-06-03 Thread Larry Wall
On Sat, Jun 03, 2006 at 03:51:45PM -0700, Paul Hodges wrote: : --- Ashley Winters <[EMAIL PROTECTED]> wrote: : > On 6/2/06, Paul Hodges <[EMAIL PROTECTED]> wrote: : > > : > > my @answer = map { async { &_() } } @jobs; : > : > That still seems too explicit. I thought we had hyperoperators to : > i

Re: Synchronized / Thread syntax in Perl 6

2006-06-03 Thread Paul Hodges
--- Ashley Winters <[EMAIL PROTECTED]> wrote: > On 6/2/06, Paul Hodges <[EMAIL PROTECTED]> wrote: > > > > my @answer = map { async { &_() } } @jobs; > > That still seems too explicit. I thought we had hyperoperators to > implictly parallelize for us: > > my @answer = @jobs.»(); > > Which would

Re: Synchronized / Thread syntax in Perl 6

2006-06-03 Thread Ashley Winters
On 6/2/06, Paul Hodges <[EMAIL PROTECTED]> wrote: Though if that works, you could squish this example even more, to class QueueRunner { our sub process_queue(Code @jobs_in) { map { async { &_() } } @jobs_in; } }# end QueueRunner # Elsewhere... my @answer = QueueRunner.process

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

2006-06-03 Thread audreyt
Author: audreyt Date: Sat Jun 3 05:49:52 2006 New Revision: 9435 Modified: doc/trunk/design/syn/S04.pod Log: * S04 - Change this example: if -e { say "exists" } { extra() } to this: if rand { say "exists" } { extra() } Because bare "-e" may be removed along with all $_-default

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

2006-06-03 Thread audreyt
Author: audreyt Date: Sat Jun 3 07:12:04 2006 New Revision: 9442 Modified: doc/trunk/design/syn/S05.pod Log: * At scw++'s request, add an explicit definition to the default : "\s+ if it's between two \w characters, \s* otherwise" Modified: doc/trunk/design/syn/S05.pod ===

Re: About default options ':ratchet' and ':sigspace' on rules

2006-06-03 Thread Audrey Tang
在 2006/6/3 下午 3:03 時,Shu-Chun Weng 寫到: I'll then rewrite most of my rules into tokens. And about the definition of , the "engine" I mentioned is Pugs::Complier::Rule, so that if what PGE does is considered the "correct" way, I will change the behavior of P::C::Rule. Yes, please do. :-) By

Re: About default options ':ratchet' and ':sigspace' on rules

2006-06-03 Thread Shu-Chun Weng
Hi, Thanks for the comments :) I'll then rewrite most of my rules into tokens. And about the definition of , the "engine" I mentioned is Pugs::Complier::Rule, so that if what PGE does is considered the "correct" way, I will change the behavior of P::C::Rule. By the way, if someone can add it to