in reply to Inside-out objects inheriting from hash-based classes
You're innovating faster than I can keep up with it. :-)
I'm glad to see this appear finally, as "foreign inheritance" is one of the other big deals of the inside-out technique. (I like that term -- I've been searching for a good term for it for the seminar that I mentioned in Seeking inside-out object implementations, so I'll have to steal it and credit you.)
Can you talk about the design choices you've made a little bit more? From a quick skim of the code, it looks like you're using some sort of facade pattern (er, adaptor pattern, whatever) in the AUTOLOAD to check method calls against the foreign object(s), rather than using a foreign object as the blessed reference directly with the @ISA array. That does allow multiple foreign objects, but at the cost of incremental indirection.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inside-out objects inheriting from hash-based classes
by jdhedden (Deacon) on Dec 07, 2005 at 19:35 UTC | |
by xdg (Monsignor) on Dec 07, 2005 at 21:52 UTC | |
by jdhedden (Deacon) on Dec 08, 2005 at 05:27 UTC |