Author: masak Date: 2009-10-21 00:03:48 +0200 (Wed, 21 Oct 2009) New Revision: 28864
Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] same-named non-anon positionals are a compile error Modified: docs/Perl6/Spec/S06-routines.pod =================================================================== --- docs/Perl6/Spec/S06-routines.pod 2009-10-20 21:54:09 UTC (rev 28863) +++ docs/Perl6/Spec/S06-routines.pod 2009-10-20 22:03:48 UTC (rev 28864) @@ -16,8 +16,8 @@ Created: 21 Mar 2003 - Last Modified: 10 Oct 2009 - Version: 120 + Last Modified: 21 Oct 2009 + Version: 121 This document summarizes Apocalypse 6, which covers subroutines and the new type system. @@ -503,6 +503,10 @@ possible on those arguments that are bound to a final slurpy or arglist variable.) +All positional parameters must either have a unique name (sigil included) +or be anonymous. Declaring a routine having two positionals with exactly +the same name counts as a compile-time error. + =head2 Named arguments Named arguments are recognized syntactically at the "comma" level.