[Issue 11737] Allow optional string value for getopt switches

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 15 11:31:49 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11737



--- Comment #5 from Orvid King <blah38621 at gmail.com> 2013-12-15 11:31:44 PST ---
(In reply to comment #3)
> (In reply to comment #2)
> > I think the default argument trick is quite neat. Andrej, would you care to
> > implement it?
> 
> I'm sure he'd love to implement it, but delegate and function pointer types
> don't currently keep any information on the name or default value of their
> parameters, meaning that this is currently impossible without declaring a
> function and passing it as an alias template parameter.

I just realized this probably came off a wee bit more confrontational than I
meant it to, woops. Either way, I think the default value option for a delegate
is a beautiful way to solve the problem, as I think having 2 separate delegates
is just a bit too verbose, especially as they are likely to contain the exact
same code.

-- 
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