Author: lwall
Date: 2010-02-13 21:17:46 +0100 (Sat, 13 Feb 2010)
New Revision: 29715

Modified:
   docs/Perl6/Spec/S02-bits.pod
Log:
[S02] clarify that anon allows a name but doesn't install it for jnthn++


Modified: docs/Perl6/Spec/S02-bits.pod
===================================================================
--- docs/Perl6/Spec/S02-bits.pod        2010-02-13 19:52:30 UTC (rev 29714)
+++ docs/Perl6/Spec/S02-bits.pod        2010-02-13 20:17:46 UTC (rev 29715)
@@ -1718,6 +1718,12 @@
 equivalent to a C<my> declaration inside the block of the function,
 except that such parameters default to readonly.
 
+The C<anon> declarator allows a declaration to provide a name that
+can be used in error messages, but that doesn't put into any symbol table:
+
+    my $secret = anon sub marine () {...}
+    $secret(42)  # too many arguments to sub marine
+
 =item *
 
 Sigils are now invariant.  C<$> always means a scalar variable, C<@>

Reply via email to