Author: lwall Date: 2009-10-28 18:15:09 +0100 (Wed, 28 Oct 2009) New Revision: 28932
Modified: docs/Perl6/Spec/S12-objects.pod Log: [S12] clarify that private accessors are already the most primitive form (Pm-6) Modified: docs/Perl6/Spec/S12-objects.pod =================================================================== --- docs/Perl6/Spec/S12-objects.pod 2009-10-28 17:03:04 UTC (rev 28931) +++ docs/Perl6/Spec/S12-objects.pod 2009-10-28 17:15:09 UTC (rev 28932) @@ -13,8 +13,8 @@ Created: 27 Oct 2004 - Last Modified: 19 Oct 2009 - Version: 90 + Last Modified: 28 Oct 2009 + Version: 91 =head1 Overview @@ -1286,6 +1286,11 @@ } The syntax for calling back to C<MyClass> is C<$obj!MyClass::meth()>. +Note that private attribute accessors are always invoked directly, +never via a dispatcher, since there is never any question about which +object is being referred to. Hence, the private accessor notation +may be agressively inlined for simple attributes, and no simpler +notation is needed for accessing another object's private attributes. The C<sub> keyword is optional immediately after a C<proto>, C<multi>, or C<only> keyword.