[Issue 7526] New: void functions passed to getopt die

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 16 14:36:30 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7526

           Summary: void functions passed to getopt die
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: blood.of.life at gmail.com


--- Comment #0 from Bernard Helyer <blood.of.life at gmail.com> 2012-02-16 14:36:29 PST ---
import std.getopt;

void usage() {}

void main(string[] args)
{
    getopt(args, "help", {usage();});
}

This works in 2.057 and Andrei believes it is intended to work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list