Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

4 views
Skip to first unread message

la...@cvs.perl.org

unread,
Feb 22, 2007, 7:32:26 PM2/22/07
to perl6-l...@perl.org
Author: larry
Date: Thu Feb 22 16:32:25 2007
New Revision: 13703

Modified:
doc/trunk/design/syn/S06.pod

Log:
Clarify that a named argument may name either the label or the variable name.


Modified: doc/trunk/design/syn/S06.pod
==============================================================================
--- doc/trunk/design/syn/S06.pod (original)
+++ doc/trunk/design/syn/S06.pod Thu Feb 22 16:32:25 2007
@@ -13,9 +13,9 @@

Maintainer: Larry Wall <la...@wall.org>
Date: 21 Mar 2003
- Last Modified: 16 Feb 2007
+ Last Modified: 22 Feb 2007
Number: 6
- Version: 71
+ Version: 72


This document summarizes Apocalypse 6, which covers subroutines and the
@@ -519,6 +519,12 @@
multi sub handle_event ($window, $event; $mode) {...}
multi method set_name ($self: $name; $nick) {...}

+A double semicolon terminates the longest possible longname; parameters
+after this are never considered for multiple dispatch (except of course
+that they can still "veto" if their number or types mismatch). (Note,
+the single semicolon form is still considered conjectural, though the
+double semicolon is fairly certain.)
+
If the parameter list for a C<multi> contains no semicolon to delimit
the list of important parameters, then all positional parameters are
considered important. If it's a C<multi method> or C<multi submethod>,
@@ -615,6 +621,11 @@

so that you can use more descriptive internal parameter names without
imposing inconveniently long external labels on named arguments.
+If a named argument does not match any label, it is matched against
+the variable names as a fallback. This allows you to give both a
+short and a long name:
+
+ sub globalize (:g($global)) {...}

Arguments that correspond to named parameters are evaluated in scalar
context. They can only be passed by name, so it doesn't matter what

Blair Sutton

unread,
Feb 22, 2007, 7:35:15 PM2/22/07
to perl6-l...@perl.org
Hi Larry

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?

Thanks in advance
Blair

Patrick R. Michaud

unread,
Feb 22, 2007, 9:07:36 PM2/22/07
to Blair Sutton, perl6-l...@perl.org

The versions that appear on dev.perl.org are available from
http://svn.perl.org/perl6/doc/trunk/design/syn/ .

There are also some draft synopses available from
http://svn.pugscode.org/pugs/docs/Perl6/Spec/ .

Hope this helps!

Pm

Agent Zhang

unread,
Feb 23, 2007, 7:04:05 AM2/23/07
to Blair Sutton, perl6-l...@perl.org
On 2/23/07, Blair Sutton <bs...@numeninest.com> 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:

http://svn.perl.org/perl6/doc/trunk/design/syn/

Cheers.

0 new messages