NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
While I don't understand it "all"... (Score:1)
Re:While I don't understand it "all"... (Score:1)
Research need is implied.
------------------------------
You are what you think.
Thanks for the Explanation! (Score:1)
Hi Ovid!
Thanks for the explanation. I understood everything (or at least hope I did). Traits sound very cool and everything, and I'll keep them in mind if I ever find a need to use them.
Also thanks for working on the module! <hug />
BTW, how are traits related to Perl 6's Roles? Or to Class::Roles? I sort-of was told that they are related on IRC once. I should note that I could not understand what Roles are from the OOP Apocalypse, and no one yet was able to explain to me what they were. (inc
Re:Thanks for the Explanation! (Score:2)
Traits are pretty much the same thing as Perl 6 roles. However, the original trait descriptions did not allow for the application of traits at runtime. Perl 6 roles do and some of the CPAN implementations for Perl 5 do allow runtime application.
As for how Class::Trait compares with Class::Role, see this comparison [perl.org] (that link also includes a couple of comments about Class::Roles).
It's clear to me now that Class::Trait needs to support runtime trait application, so this is my next major step.