This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Question
On Tuesday 01 February 2005 22:28, John Lamb wrote:
> Przemyslaw Sliwa wrote:
> [...]
> Nonetheless, it is often a good idea to declare an automatic function
> parameter const in the function definition. This forces the compiler to
> check that you don't change the parameter value in the body of the
> function. Similarly, it is a good idea to declare any variable const if
> you don't intend to change it.
IMHO, you lose more with the potential confusion for the programmer than what
you may earn.
jordi