in reply to OO: extending a closure object
Why are you using this design? I don't see any advantages to it over more traditional styles. I guess it takes care of generic accessors.package Extended; sub new { my $class = shift; my $closure = Base->new; $closure->(CELLULAR => undef); $closure->(EMAIL => undef); bless $closure, $class; }
|
|---|