inconsistent 'const' in exec{l,v}.

Mike Frysinger vapier@gentoo.org
Fri Nov 18 16:38:00 GMT 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20111118/017e0768/attachment.sig>


More information about the Libc-help mailing list