[Issue 7526] void functions passed to getopt die
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 24 10:33:59 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=7526
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andrej.mitrovich at gmail.com
Resolution| |WORKSFORME
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-24 10:33:54 PDT ---
-----
import std.getopt;
void usage() { assert(0); } // will throw
void main(string[] args)
{
getopt(args, "help", {usage();});
}
-----
Seems to work in 2.064/2.065.
--
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