This is the mail archive of the gsl-discuss@sourceware.org mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Feedback from GSL folks on libflame 4.0


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]