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: Question


On Tue, 2005-02-01 at 21:28 +0000, John Lamb wrote:
> Przemyslaw Sliwa wrote:

> > I was just wondering what means
> > 
> > double gsl_cdf_ugaussian_Pinv (const double P)


> I think you are right, const is not required and you don't need to worry 
> about it when calling the function. This is certainly true in C++.

Unfortunately, some compilers are truly brain-damaged and
will claim that the prototypes do not match if you remove
that 'const' from the declaration. As I recall, there was
a complaint to this effect several years ago; I think it
was an HP compiler.

Anyway, it may be unnecessary now. It certainly is silly.

-- 
Gerard Jungman <jungman@lanl.gov>
Los Alamos National Laboratory


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