This is the mail archive of the libc-alpha@sources.redhat.com 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: getopt() argument permuting considered risky


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


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