This is the mail archive of the gsl-discuss@sources.redhat.com 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: gsl_histogram*_clone should fail silently


Sorry for that ambiguous subject. Of course GSL_ERROR should be used. Before
suggesting that patch I assured that the error handler is called in every case
of failure.

To my shame I must admit, that I have forgotten to free the histograms in my
example.

Yours, Achim 

Brian Gough writes:
> Hi,
> 
> The general philosophy is to use GSL_ERROR for every error condition.
> In some cases this gives multiple error messages but this "is not a
> bug, it's a feature" -- more error messages, more information.  For
> example, two inconsistent error messages immediately suggests an
> uninitialized variable, which is the correct interpretation here.
> 
> --
> Brian



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