getopt() argument permuting considered risky

Paul Jarc prj@po.cwru.edu
Wed Aug 4 20:43:00 GMT 2004


Måns Rullgård <mru@kth.se> wrote:
> Simon Josefsson <jas@extundo.com> writes:
>> On the ranting side, I think it would have been better if this feature
>> had originally been introduced via a separate API, say getopt_gnu,
>> instead.  That would have minimized surprises, both pleasant and
>> unpleasant ones.
>
> Then programs using that function would not compile on non-glibc
> systems.

That's a good thing: the program expects a certain behavior; the
behavior is unavailable on that platform; the problem is detected at
compile time.


paul



More information about the Libc-alpha mailing list