in reply to Re^6: Overriding bless for inside-out object safety
in thread Overriding bless for inside-out object safety
From the little I know of what xdg is doing, I wonder if it could ever be compatible with mod_perl?
There's only a few things that I've heard of that cause problems for mod_perl.
Many inside-out object toolkits use attributes and the CHECK phase to set up various things and that doesn't work under mod_perl
Without hooks for Storable, inside-out objects can't be serialized*
Perl threads clone the interpreter; mod_perl uses a persistant interpreter. I'd imagine the combination would be ugly, regardless of whether inside-out objects are involved or not
What I'm working on will address the first two problems. Object::InsideOut does this already today. The last is a tangential issue, though I'm also providing support for inside-out objects and threads, regardless of mod_perl issues.
*Expecting to serialize an object by violating encapsulation and treating it like a data structure isn't a very good practice to start with as it's inconsistent usage of imperative and object-oriented styles of programming: freeze( $object ) instead of $object->freeze. Thankfully, Storable does the right thing if hooks are provided.
-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^8: Overriding bless for inside-out object safety
by BrowserUk (Patriarch) on Jan 04, 2006 at 20:41 UTC |