Author: lwall
Date: 2009-10-19 19:20:38 +0200 (Mon, 19 Oct 2009)
New Revision: 28846
Modified:
docs/Perl6/Spec/S12-objects.pod
Log:
[S12] treat all delegation objects equally including arrays and hashes
Modified: docs/Perl6/Spec/S12-objects.pod
===================================================================
--- docs/Perl6/Spec/S12-objects.pod 2009-10-19 16:22:20 UTC (rev 28845)
+++ docs/Perl6/Spec/S12-objects.pod 2009-10-19 17:20:38 UTC (rev 28846)
@@ -13,8 +13,8 @@
Created: 27 Oct 2004
- Last Modified: 8 Oct 2009
- Version: 89
+ Last Modified: 19 Oct 2009
+ Version: 90
=head1 Overview
@@ -1360,36 +1360,6 @@
method select_tail handles <wag hang> {...}
-If your delegation object happens to be an array:
-
- has @handlers handles 'foo';
-
-then PerlĀ 6 assumes that your array contains a list of potential
-handlers, and you just want to call the I<first> one that succeeds.
-This is not considered a wildcard match unless the "handles" argument
-forces it to be.
-
-[Conjectural: the hash syntax is reserved until we figure out the
-semantics we really want, and whether this actually buys us anything
-over normal polymorphism.] If your delegation object happens to be
-a hash:
-
- has %objects handles 'foo';
-
-then the hash provides a mapping from a set of Selectors specified as Pair
-keys to the object specified as the Pair value that should be delegated to:
-
- has %barkers handles "bark" =
- (Chihauhau => $yip,
- Beagle => $yap,
- Terrier => $arf,
- StBernard => $woof,
- * => $ruff,
- );
-
-If the current object matches no Selector, a "C<nextsame>" is
-automatically performed.
-
=head1 Types and Subtypes
The type system of Perl consists of roles, classes, and subtypes.