From: Eric B. <er...@go...> - 2001-05-29 21:40:19
|
Christian Couder wrote: > > I would rather have a base class using error variables and a derived > class (inheriting the base class) with exceptions. The more I think about it, the more I like this solution. In the parent class the postconditions do not state that the operation succeeded and the error variable is set on error, and in the heir class the postcondtions are strengthened to state that the operation succeeded and an exception is raised on error. Berend, what's your opinion about this design? At least it has the advantage of providing both programming styles to the clients of this library. I didn't look at the implementation of your library so I don't know whether this may cause implementation problems or involve too much work for you to modify your classes. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |