Add link to STD.pm where official documentation listed

2009-05-23 Thread Richard Hainsworth
On #perl6 Larry said that STD is a part of the specification for perl6. Would it be possible to include a link to STD.pm in the list of official documentation? There are things in STD that are not in the specifications, eg., default values for optional parameters should come after traits assi

r26926 - docs/Perl6/Spec

2009-05-23 Thread pugs-commits
Author: jdlugosz Date: 2009-05-24 06:48:07 +0200 (Sun, 24 May 2009) New Revision: 26926 Modified: docs/Perl6/Spec/S02-bits.pod Log: Refer to actual concrete class C where applicable, replace Code with actual class or role names. Add mention of non-instantiatable roles were classes were liste

r26925 - docs/Perl6/Spec

2009-05-23 Thread pugs-commits
Author: jdlugosz Date: 2009-05-24 06:26:41 +0200 (Sun, 24 May 2009) New Revision: 26925 Modified: docs/Perl6/Spec/S06-routines.pod Log: add C<> tags, fix typos, fix out-of-date \$args to |$args, use Callable (not Code or others) for the role, change .wrap to return a cookie object to unwrap,

Re: Array variables as formal parameters ???

2009-05-23 Thread John M. Dlugosz
Henry Baragar Henry.Baragar-at-instantiated.ca |Perl 6| wrote: > sub f2 (@y) {say @y.WHAT; say +...@y}; f2(Nil); Array() 1 Why doesn't +...@y produce 0, not 1? It's an empty list. From rakudo: > sub f2 (@y) {say @y[0]}; f2(Nil); Nil() Henry

Re: Array variables as formal parameters ???

2009-05-23 Thread John M. Dlugosz
> From whence did it get its Item container? OK, my brain made a wrong turn some time on Tuesday. Let me review the basics. From S02: |$x| may be bound to any object, including any object that can be bound to any other sigil. Perl variables have two associated types: their "value type" and

Re: Array variables as formal parameters ???

2009-05-23 Thread Henry Baragar
On May 23, 2009 04:19:53 pm John M. Dlugosz wrote: > > @y just means "the argument must do the Positional role", so it's a > > looser constraint than "is Array". Equivalent is more like: > > > >sub f2(Positional $x) { } > > > > Thanks, > > > > Jonathan > > I'm finding a difference in how a Posi

Re: Array variables as formal parameters ???

2009-05-23 Thread John M. Dlugosz
Jonathan Worthington jonathan-at-jnthn.net |Perl 6| wrote: Hi, Little clarification... Henry Baragar wrote: I think that in your "Example 1", that you may be making too making too much of a distinction between "$a" and "@a". That is: sub f2(@y) {...} has exactly the same signature as

Re: Array variables as formal parameters ???

2009-05-23 Thread Henry Baragar
On May 23, 2009 04:10:49 pm John M. Dlugosz wrote: > Henry Baragar Henry.Baragar-at-instantiated.ca |Perl 6| wrote: > > I think that in your "Example 1", that you may be making too making too > > much of a distinction between "$a" and "@a". That is: > > sub f2(@y) {...} > > has exactly the sam

Re: Array variables as formal parameters ???

2009-05-23 Thread John M. Dlugosz
Henry Baragar Henry.Baragar-at-instantiated.ca |Perl 6| wrote: I think that in your "Example 1", that you may be making too making too much of a distinction between "$a" and "@a". That is: sub f2(@y) {...} has exactly the same signature as sub f2($x is Array) {...} In other words, the

Re: Array variables as formal parameters ???

2009-05-23 Thread Jonathan Worthington
Hi, Little clarification... Henry Baragar wrote: I think that in your "Example 1", that you may be making too making too much of a distinction between "$a" and "@a". That is: sub f2(@y) {...} has exactly the same signature as sub f2($x is Array) {...} In other words, they both take

r26923 - docs/Perl6/Spec/S32-setting-library

2009-05-23 Thread pugs-commits
Author: lwall Date: 2009-05-23 21:10:15 +0200 (Sat, 23 May 2009) New Revision: 26923 Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [Temporal.pod] finish previous patch, urgh Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod ==

Re: Array variables as formal parameters ???

2009-05-23 Thread Henry Baragar
On May 22, 2009 06:55:49 pm John M. Dlugosz wrote: > Please take a look at > . I think that in your "Example 1", that you may be making too making too much of a distinction between "$a" and "@a". That is: sub f2(@y) {...} has exactl

r26922 - docs/Perl6/Spec/S32-setting-library

2009-05-23 Thread pugs-commits
Author: lwall Date: 2009-05-23 21:04:56 +0200 (Sat, 23 May 2009) New Revision: 26922 Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [Temporal.pod] prefer Rat from time() Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod ===