std.getopt suggestion
Vladimir Panteleev
vladimir at thecybershadow.net
Thu Sep 29 00:13:08 PDT 2011
On Wed, 28 Sep 2011 22:44:29 +0300, Jonathan M Davis <jmdavisProg at gmx.com>
wrote:
> Personally, I think that it's a significant improvement given that it's
> getting
> rid of the mutable module-level variables and better encapsulating
> getopt's
> functionality, but I think that there's some value in discussing the idea
> first.
Another idea:
GetOptOptions options = { assignChar : ':' };
getopt(args, options, ...);
Passing GetOptOptions overrides the deprecated global options.
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list