Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Re: Where/When is OO useful?

by Anonymous Monk
on Aug 28, 2002 at 03:16 UTC ( #193347=note: print w/replies, xml ) Need Help??

in reply to Re: Where/When is OO useful?
in thread Where/When is OO useful?

Nice. Do you also have recommendations for keeping everything as neat and tidy while adding persistence? I've managed a few simple cases with Storable hooks, but dependencies on the ancestor class beyond just its api seem to be rearing their heads again :-(

Replies are listed 'Best First'.
Re: Where/When is OO useful?
by Abigail-II (Bishop) on Aug 28, 2002 at 07:53 UTC
    It shouldn't be too hard to write save and restore functions that dump the appropriate values of the hashes.

    And it's real easy to make class level save and restore functions that save/restore *all* the instances of a class.

    However, to do this right, you do need to cooperation of the classes you inherit....


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://193347]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2016-10-24 23:52 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (312 votes). Check out past polls.