bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] glpk.h (193): const char *save_sol;


From: Andrew Makhorin
Subject: Re: [Bug-glpk] glpk.h (193): const char *save_sol;
Date: Fri, 19 Jul 2013 16:42:48 +0400

Hi Heinrich,

> == Use of const in iocp ==
> 
> In structure iocp you have introduced with GLPK 4.52 a field:
> const char *save_sol; 
> 
> Should access to this component really be restricted by "const"?
> 
> Why should a program outside the glpk library not be allowed to change
> the adress to which save_sol points?

It is not a constant pointer, it is a pointer to a constant object
(character string), so the application program can change this pointer.
It is like pointers used in strcmp, strchr, etc.

> 
> == Missing documentation ==
> 
> Unfortunately the iocp fields alien, use_sol and save_sol are not
> documented in glpk-4.52/doc/glpk.pdf.
> 
> Glpsol parameter --alien is not documented.
> 
> Please, update the documentation.

These features are not documented intentionally, because they were
introduced for development purposes and will changed/removed in the
future. I think this must not confuse the user.


Best regards,

Andrew Makhorin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]