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 details. -- best regards, Brian Gough Network Theory Ltd, Publishing the GSL Manual - http://www.network-theory.co.uk/gsl/manual/ _______________________________________________ Bug-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gsl
