Author: larry
Date: Fri Feb 2 01:22:38 2007
New Revision: 13565
Modified:
doc/trunk/design/syn/S12.pod
Log:
More thinking about .:mumble{...}
Modified: doc/trunk/design/syn/S12.pod
==============================================================================
--- doc/trunk/design/syn/S12.pod (original)
+++ doc/trunk/design/syn/S12.pod Fri Feb 2 01:22:38 2007
@@ -628,6 +628,22 @@
C<TEST> method--they are not inherited independently. The C<TEST> method
must explicitly pass the query on to other classes in such cases.)
+Depending on the class, the pairs in question may have arguments.
+The C<Hash> class in particular makes use of pair syntax for subscript
+modifiers:
+
+ %hash.:exists{$key}
+ %hash.:delete{$key}
+
+This has the advantage that pair's argument is actually parsed exactly
+as a subscript would be. A C<.exists()> method could not easily make
+such a guarantee about its arguments.
+
+Conjecture, the trailing subscript adverbs could be brought up front as
+well:
+
+ @array.:[EMAIL PROTECTED]
+
=head1 Calling sets of methods
For any method name, there may be some number of candidate methods