[Issue 11764] New: [REG2.065a]std.getopt broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 18 07:16:24 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11764
Summary: [REG2.065a]std.getopt broken
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: zan77137 at nifty.com
--- Comment #0 from SHOO <zan77137 at nifty.com> 2013-12-18 07:16:21 PST ---
This code doesn't work (git HEAD):
import std.getopt;
import std.stdio;
void main()
{
auto args = ["main", "-test"];
bool opt;
args.getopt(config.passThrough, "opt", &opt);
writeln(args);
assert(args == ["main", "-test"]);
}
----
$ dmd -run main
["main", "-t", "est"]
core.exception.AssertError at main(10): Assertion failure
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list