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}.


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.

That might be expected to take a while. :)


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