This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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: inconsistent 'const' in exec{l,v}.


On Thursday 17 November 2011 18:43:33 Jonathan Nieder wrote:
> Carlos O'Donell wrote:
> > Specifying the function using "const char* const argv[]" as you
> > suggest would break existing code by requiring a cast and still
> > doesn't specify exactly what is intended by the interface and which
> > can't be expressed in C anyway.
> 
> Indeed, a proper fix would be for some future revision of the C
> standard to allow implicit conversion from "char **" to "const char *
> const *", like C++ already does.

indeed.  the forced casting from non-const to const is f**kin obnoxious.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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