On 10/3/05, Uwe Voelker <[EMAIL PROTECTED]> wrote:
> The problem is init_db_info(). The object is reblessed to
> Rose::DB::MySQL (and 'HA26::DB' stored in _origin_class).
> $InheritableScalar looks first in Rose::DB which returns an empty
> registry. I'm sure you know what I mean. If not, feel free to ask.
>
> The attached patch solves the problem, but you might want to do it in
> another way. The patch passes all tests.

Yeah, I did it another way since I want to preserve as much of the
"isa" properties as I can.  Straight re-blessing into a default
Rose::DB driver-specific subclass was a bad idea that I meant to move
away from a while ago.  Instead, now I whip up a new class that has
something closer to the "real" @ISA and then re-bless the object into
that class.  The change is in CVS.

> I'm not sure why my code (HA26::DB) crashes and your testsuite not. What
> did I do wrong in my subclassing?

I just wasn't testing for the right things.  I added some tests to
make sure that private registries work the way I say they should in
the tutorial.

-John


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to