[Issue 2993] getops uses globals for formatting
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 4 01:30:16 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=2993
Peter Alexander <peter.alexander.au at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter.alexander.au at gmail.co
| |m
--- Comment #1 from Peter Alexander <peter.alexander.au at gmail.com> ---
I agree, but I wonder if there's code out there relying on this?
For those that aren't aware, getopt declares these globals that can be
customized (it's by design)
dchar optionChar = '-';
string endOfOptions = "--";
dchar assignChar = '=';
string arraySep = "";
I can easily imagine a windows program changing optionChar to '/' for
consistency.
Not sure what to do about this...
--
More information about the Digitalmars-d-bugs
mailing list