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: nob...@puremagic.com
        ReportedBy: blood.of.l...@gmail.com


--- Comment #0 from Bernard Helyer <blood.of.l...@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: -------

Reply via email to