diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-03-31 01:15:00 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-03-31 01:15:00 +0000 |
commit | 591eabe82e1756af4e164101163ac48bc539f446 (patch) | |
tree | 24fc9ab0f0162d2e169a30e26c499e4db77b2bda /devel/p5-Role-Tiny/pkg-descr | |
parent | 375c1889b2c1ad267a8bcf2adc264d6314f68d61 (diff) | |
download | ports-591eabe82e1756af4e164101163ac48bc539f446.tar.gz ports-591eabe82e1756af4e164101163ac48bc539f446.zip |
Notes
Diffstat (limited to 'devel/p5-Role-Tiny/pkg-descr')
-rw-r--r-- | devel/p5-Role-Tiny/pkg-descr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/p5-Role-Tiny/pkg-descr b/devel/p5-Role-Tiny/pkg-descr new file mode 100644 index 000000000000..c0ca63349cf4 --- /dev/null +++ b/devel/p5-Role-Tiny/pkg-descr @@ -0,0 +1,13 @@ +Role composition can be thought of as much more clever and meaningful multiple +inheritance. The basics of this implementation of roles is: +- If a method is already defined on a class, that method will not be composed in + from the role. +- If a method that the role "requires" to be implemented is not implemented, + role application will fail loudly. + +Unlike Class::C3, where the last class inherited from "wins," role composition +is the other way around, where first wins. In a more complete system (see Moose) +roles are checked to see if they clash. The goal of this is to be much simpler, +hence disallowing composition of multiple roles at once. + +WWW: http://search.cpan.org/dist/Role-Tiny/ |