Thread overview
[Issue 7526] New: void functions passed to getopt die
Feb 16, 2012
Bernard Helyer
Apr 20, 2012
SomeDude
Apr 20, 2012
SomeDude
February 16, 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@puremagic.com
        ReportedBy: blood.of.life@gmail.com


--- Comment #0 from Bernard Helyer <blood.of.life@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: -------
April 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7526


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear@mailmetrash.com


--- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-04-20 00:54:51 PDT ---
See also issue 7426 and issue 7493

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7526



--- Comment #2 from SomeDude <lovelydear@mailmetrash.com> 2012-04-20 00:57:20 PDT ---
(In reply to comment #1)
> See also issue 7426 and issue 7493

Oh my, I meant issue 7421 and  issue 7693

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