std.getopt suggestion

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Sep 29 11:40:38 PDT 2011


On 9/29/11 11:24 AM, Vladimir Panteleev wrote:
> On Thu, 29 Sep 2011 18:55:39 +0300, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>> Sloppy maintainers may also take the GetOpt object by reference,
>> change its state, and pass it back.
>
> See my suggestion earlier in this thread.

You mean this:

 > Another idea:
 >
 > GetOptOptions options = { assignChar : ':' };
 > getopt(args, options, ...);
 >
 > Passing GetOptOptions overrides the deprecated global options.

I don't think this adds value. It's just churn.


Andrei


More information about the Digitalmars-d mailing list