From: Eric B. <er...@go...> - 2001-05-29 08:29:10
|
Christian Couder wrote: > > I would rather have a base class using error variables and a derived > class (inheriting the base class) with exceptions. > Or something like this. I think it's far better than two set of routines > (doing essentialy the same thing) in the same class. Why not. What do you think about that Berend? On the other hand with the first solution that I suggested (deciding at creation time of the object if it will raise exceptions or if it only uses an error variable) we can have only one set of routines which call a `set_last_error' routine when an error occur: set_last_error (...) is -- ... do last_error := .... if exeptions_enabled then raise (...) end end -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |