in reply to is this a perversion of OO principles?

Kudos, what an excellent solution to that problem. I commend you.

In fact, sounds like code that we all might find useful.

One idea: would you want to make it so that you had four classes, one abstract MessageLibrary class, and three others for each type. You might find in the future that the different types of errors needs different methods of some type. It would also be easier to read because you would know what type you are dealing with. Just an idea that I hope helps.


I admit it, I am Paco.
  • Comment on Re: is this a perversion of OO principles?

Replies are listed 'Best First'.
MessageLibrary code available for comment
by seattlejohn (Deacon) on Jan 07, 2002 at 08:44 UTC
    Thanks for the compliment, and I've just posted the code and POD on my site for all to see (gulp). Here's the link:

    http://www.clyman.com/s/pm/messagelibrary/

    This is my first time releasing code into the wild (aside from stuff I've given to clients unlikely to ever look under the covers!)... comments, suggestions, etc. would be much appreciated.