On Fri, 2010-02-19 at 19:40 +0000, Brian Gough wrote: > > The approach in GSL is to have an abort() by default, for the same > reason. But the user can turn off the abort() and use the error > return values instead by providing an alternative error handler as a > function pointer. Here's how it would look with your functions:
Yes. But don't do it this way. This is not layered properly. Read my previous post. The problem with this is that a third-party library developer has to figure out how to turn it off. It's better to publish two interfaces, one "natural" targeted to end-users and one "return-code" targeted for use by developers of other systems. -- G. Jungman
