[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] GSL zsolve.c bug and the fix

From: Brian Gough
Subject: Re: [Bug-gsl] GSL zsolve.c bug and the fix
Date: Tue, 2 May 2006 18:46:36 +0100

Suleyman Guleyupoglu writes:
 > I report this as a bug with the code not the documentation though. I would 
 > argue that the documentation should remain the same but the code is changed 
 > as I suggested earlier. Otherwise, the function's return value is useless. 
 > It either returns GSL_SUCCESS or calls the error handler, in which case the 
 > program aborts. So for the caller, what is the point of checking the return 
 > value? I.e., as long as the function returns, it was successful. So maybe 
 > the function should have been declared "void gsl_poly...."

If you turn off the error handler globally then all error codes are
returned to the caller--this is the recommended way of using the
library.  See the example program in the error handling chapter for

best regards,

Brian Gough

Network Theory Ltd,
Publishing the GSL Manual - http://www.network-theory.co.uk/gsl/manual/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]