I have some existing RDBO classes, all inheriting from a common BaseObject parent. If I want some of them to be selectively cached, currently I have to create a BaseObject::Cached that inherits from RDBO::Cached (I do this with a copy+edit, see below), and then each of my classes can inherit from the cached variation. The issue is that any functionality in BaseObject will not be in my cached variation unless I do a copy+edit. I considered making BaseObject::Cached inherit from BaseObject and RDBO::Cached but that seems like asking for trouble.
(the copy+edit "process": perl -p -e's/My::DB::BaseObject/My::DB::BaseObject::Cached/; s/Rose::DB::Object([^:])/Rose::DB::Object::Cached$1/' My/DB/BaseObject.pm > My/DB/BaseObjectCached.pm ) Is there an easier way? If a mixin could do it that would be great. I didn't see a way in the docs. If not, maybe there's a better approach I'm missing. Thanks Ted ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object