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.
SOTA (Score:1)
The state of the art of mixins in Perl 5 is Class::Trait [cpan.org].
Re: (Score:1)
Class::Trait [cpan.org] ++
mixins versus traits (Score:2)
So you want to mixin your bomb class and your girlfriend class to your current class:
What happens when you want the Bomb::fuse method (because you can control the timing) but you also want the Girlfriend::explode method (because it's presumably non-lethal)? Now you have an ordering problem and you can't eliminate it. Of course, you could just use delegation, but that does
mixing in with SEx (Score:1)
I end up not often needing the override-and-super feature that I see as being the real benefit of mixin.pm -- but Sub::Exporter::Util::mixin_exporter can do that if I need it.
rjbs
C3 heirarchy conversion woes (Score:1)
Re: (Score:2)
I think I see the problem.