[svn:parrot] r48098 - trunk

coke at svn.parrot.org coke at svn.parrot.org
Fri Jul 16 13:37:49 UTC 2010


Author: coke
Date: Fri Jul 16 13:37:49 2010
New Revision: 48098
URL: https://trac.parrot.org/parrot/changeset/48098

Log:
Add a little more verbiage for the :main ticket.

Modified:
   trunk/DEPRECATED.pod

Modified: trunk/DEPRECATED.pod
==============================================================================
--- trunk/DEPRECATED.pod	Thu Jul 15 21:52:17 2010	(r48097)
+++ trunk/DEPRECATED.pod	Fri Jul 16 13:37:49 2010	(r48098)
@@ -307,8 +307,20 @@
 
 =item :main Sub behaviour and selection. [eligible in 2.7]
 
-After deprecation parrot will use first sub marked with :main modified as main.
-Main Sub will always have to check passed arguments.
+Currently, if no :main sub is found, the first .sub in a file is used as
+main. Also, arguments are passed to the main sub regardless of the .param
+declarations in that sub.
+
+After this change, if no sub is marked with :main, an exception will be
+raised. Multiple :main declarations will be still be allowed, and all but the
+first will be ignored.
+
+This change will also force all subs, including :main, the have their
+arguments checked - to get the default :main behavior, just add:
+
+ .param pmc args :slurpy
+
+To handle an arbitrary number (inc. none) of arguments.
 
 L<https://trac.parrot.org/parrot/ticket/1033>
 L<https://trac.parrot.org/parrot/ticket/1704>


More information about the parrot-commits mailing list