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: Parameter vectors declared as const in minimized functions


Hi!

> > That is, I think that the order of precedence is const (int *arg) (the
> > integer pointer itself cannot change to point to some other value),
> > not const int (*arg) (the contents of memory pointed to by *arg cannot
> > change).
> > 
> 
> Even if I'm definitely not an expert programmer, let me try to give my
> little contribution to the discussion. I think the sentence above is the
> origin of the misunderstanding.


I'm sorry to be bugging you guys again; although I find the discussion
about const'ness very valuable, I still wonder whether it is really
necessary to have gsl_vector * that the minimized function takes as the
first argument qualified as const? I realize there are ways to come around
this issue, but is there any particular justifier for having it constant
in the first place?

Thanks a lot,

Andrej


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