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 Thu, Nov 17, 2011 at 6:43 PM, Jonathan Nieder <jrnieder@gmail.com> 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.
>
> That might be expected to take a while. :)

Not if more people volunteer to get involved in the standards process
for their respective countries... :-)

Cheers,
Carlos.


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