Author: larry Date: Wed Sep 13 15:20:27 2006 New Revision: 11978 Modified: doc/trunk/design/syn/S12.pod
Log: Clarified that interogative methods are also named unaries. Modified: doc/trunk/design/syn/S12.pod ============================================================================== --- doc/trunk/design/syn/S12.pod (original) +++ doc/trunk/design/syn/S12.pod Wed Sep 13 15:20:27 2006 @@ -14,7 +14,7 @@ Date: 27 Oct 2004 Last Modified: 13 Sept 2006 Number: 12 - Version: 22 + Version: 23 =head1 Overview @@ -1506,6 +1506,12 @@ WHEN (reserved for events?) WHY (reserved for documentation?) +None of these methods takes arguments, so they may also be used as +named unary operators: + + $obj.WHAT # method form of P5's ref + WHAT $obj # unary form of P5's ref + In general, use of these in ordinary code should be a red flag that Something Very Strange is going on. (Hence the allcaps.) Most code should use Perl 6's operators that make use of this information