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
On May 22, 2009 06:55:49 pm John M. Dlugosz wrote:
Please take a look at
http://www.dlugosz.com/Perl6/web/passing_examples.html.
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
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
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 a
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, they
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 same signature as
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 sub
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 Positional is bound to a
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
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
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,
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 CRoutine where applicable, replace Code with
actual class or role names. Add mention of non-instantiatable roles were
classes
12 matches
Mail list logo