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

2007-03-08 Thread larry
Author: larry Date: Thu Mar 8 19:16:14 2007 New Revision: 14322 Modified: doc/trunk/design/syn/S03.pod Log: overgreedy .* noted by thom++ Modified: doc/trunk/design/syn/S03.pod == --- doc/trunk/design/syn/S03.pod

S03 regexp nit

2007-03-08 Thread Thom Boyer
[EMAIL PROTECTED] wrote: > Modified: doc/trunk/design/syn/S03.pod > == > ... > +Alternately, you can increment a submatch: > + > +$filename ~~ s[^.* <(\w+)> \.\w+$] = $().succ; > + Don't you want the leading .* to be

Re: Module versions (was "Re: [svn:perl6-synopsis] r14317 - doc/trunk/design/syn")

2007-03-08 Thread Larry Wall
On Thu, Mar 08, 2007 at 12:57:00PM -0700, David Green wrote: : On 3/8/07, Larry Wall wrote: : >Perl 6 is specced to keep all the old versions of modules around in : >the library (unless the new version claims to emulate the old version). : : Oh, good! So how does a module say that it emulates ano

Module versions (was "Re: [svn:perl6-synopsis] r14317 - doc/trunk/design/syn")

2007-03-08 Thread David Green
On 3/8/07, Larry Wall wrote: Perl 6 is specced to keep all the old versions of modules around in the library (unless the new version claims to emulate the old version). Oh, good! So how does a module say that it emulates another version? (Or perhaps another module altogether...) Does "does"

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

2007-03-08 Thread David Green
On 3/8/07, Smylers wrote: In Perl 5 if you rely on a feature (or bugfix) from a particular version of a module you can specify that version and the code will continue to work with future versions -- which is a reasonably pragmatic approach, effectively saying "until proven otherwise I'll presu

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

2007-03-08 Thread larry
Author: larry Date: Thu Mar 8 10:45:10 2007 New Revision: 14321 Modified: doc/trunk/design/syn/S02.pod Log: Clarification suggested by obra++. v-style now allows * and + wildcards for convenience. Modified: doc/trunk/design/syn/S02.pod ===

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

2007-03-08 Thread larry
Author: larry Date: Thu Mar 8 10:32:50 2007 New Revision: 14320 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S11.pod Log: Further clarification of version syntax as requested by geoff++ and others. Modified: doc/trunk/design/syn/S02.pod

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

2007-03-08 Thread Geoffrey Broadwell
On Wed, 2007-03-07 at 21:35 -0800, [EMAIL PROTECTED] wrote: > +So these are in sorted version order: > + > +1.2.0.999 > +1.2.1_01 > +1.2.1_2 > +1.2.1_003 > +1.2.1a1 > +1.2.1.alpha1 > +1.2.1b1 > +1.2.1.beta1 > +1.2.1.gamma > +1.2.1α1 > +1.2.1β1 > +1.2.

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

2007-03-08 Thread Larry Wall
On Thu, Mar 08, 2007 at 09:05:32AM +, Smylers wrote: : So I fear that people will do the same thing in Perl 6. Which, : initially, will appear to work. But then, some months later, somebody : upgrades the installed version of a module (or the program gets deployed : on another computer, which

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

2007-03-08 Thread Andreas J. Koenig
> On Thu, 08 Mar 2007 07:21:19 +0100, [EMAIL PROTECTED] (Andreas J. Koenig) > said: > $spot::(parens) Please accept my apologies for my ignorant posting. Clearly the parens indicate ranges. Sorry for the noise. Going back into lurker-mode, -- andreas

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

2007-03-08 Thread Smylers
Andreas J. Koenig writes: > $spot::(parens) > > > On Wed, 7 Mar 2007 20:38:17 -0800 (PST), [EMAIL PROTECTED] said: > > > +class Dog:ver<1.2.1>:auth; > > +class Dog:ver<1.2.1>:auth; > > +class Dog:ver<1.2.1>:auth; >

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

2007-03-08 Thread Andreas J. Koenig
$spot::(parens) > On Wed, 7 Mar 2007 20:38:17 -0800 (PST), [EMAIL PROTECTED] said: > +class Dog:ver<1.2.1>:auth; > +class Dog:ver<1.2.1>:auth; > +class Dog:ver<1.2.1>:auth; > +class Dog:<1.2.1 cpan:JRANDOM> >

Re: [S09] "Whatever" indices and shaped arrays

2007-03-08 Thread Dr.Ruud
David Green schreef: > Jonathan Lang: >> (In fact, the semantics for "@x[*+n]" follows directly from the fact >> that an array returns the count of its elements in scalar context.) >> And "@x[*]" would be the same as "@x[0..^*]" or "@x[0..(*-1)]". > > That's an elegance in its favour. In Perl5 a

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

2007-03-08 Thread Smylers
[EMAIL PROTECTED] writes: > Saying C<1.2.1> specifies an I match on the version number, > not a minimum match. To match more than one version, put a range > operator in parens: > > +use Dog:ver(1.2.1..*); That[*0] strikes me as a common trap for the unwary. In Perl 5 if you rely on a f