in reply to Re: RFC Class::AppendMethods
in thread RFC Class::AppendMethods

Yes.... it looks like it might be possible. I didn't know about C::D's multiple method calling functionality. Instead of calling append_method I can use C::D (assuming I know all the methods I want to use at onece, build a bit of perl code and then eval that. I'll keep this in mind but I don't think this is any easier. Thanks PodMaster.

my @methods_q = map "sub { \$_[0]->GreenPartyDB::Database::$method( \@ +_[ 1 .. \$#_ ] ) }", @methods; my $method_c = join ", ", @method_c; eval qq[ package GreenPartyDB::Database::${table}; use Class::Delegation send => '$hook', to => [ $method_c ];