[Freeciv-Dev] Re: (PR#2261) [Patch] Remove const
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, Oct 28, 2002 at 11:56:07AM -0800, Raimar Falke via RT wrote:
> The attached patch removes superfluous consts in the type of the
> return value of various functions.
I'm probably showing my ignorance of C esoterica here, but why are
these superfluous?
Is the fact that they are functions (which can theoretically return
anything) destructive of the "const"-ness of their return? One could
imagine a string pointer initialized and never changed through the rest of
execution. (Is that not strong enough to deserve "const"?)
|
|