diff options
author | Ricardo SIGNES <rjbs@cpan.org> | 2008-05-19 06:14:02 -0400 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2008-05-19 15:51:00 +0000 |
commit | bcb8f0e81fd4f3ff4e9c5cf62b09223b964ff276 (patch) | |
tree | d44075456af7be21fbbf0a72e33240925ef98e31 /lib/UNIVERSAL.pm | |
parent | 91d0cbf6b40b82109d6a7e51347fc5d05e3eaac2 (diff) | |
download | perl-bcb8f0e81fd4f3ff4e9c5cf62b09223b964ff276.tar.gz |
correct errors / omissions in documenting DOES
Message-ID: <20080519141402.GA54401@knight.local>
p4raw-id: //depot/perl@33869
Diffstat (limited to 'lib/UNIVERSAL.pm')
-rw-r--r-- | lib/UNIVERSAL.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/UNIVERSAL.pm b/lib/UNIVERSAL.pm index 0d6fbe085a..6c756652fa 100644 --- a/lib/UNIVERSAL.pm +++ b/lib/UNIVERSAL.pm @@ -117,8 +117,9 @@ invocant performs the operations, merely that it does. (C<isa> of course mandates an inheritance relationship. Other relationships include aggregation, delegation, and mocking.) -By default, classes in Perl only perform the C<UNIVERSAL> role. To mark that -your own classes perform other roles, override C<DOES> appropriately. +By default, classes in Perl only perform the C<UNIVERSAL> role, as well as the +role of all classes in their inheritance. In other words, by default C<DOES> +responds identically to C<isa>. There is a relationship between roles and classes, as each class implies the existence of a role of the same name. There is also a relationship between |