[Issue 18371] New: allow default parameters after `...` (not just template variadics, which are ok now)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 5 00:33:55 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18371
Issue ID: 18371
Summary: allow default parameters after `...` (not just
template variadics, which are ok now)
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
eg:
```
extern (D) void error(Loc loc, const(char)* format, ...);
```
would be nice to allow:
```
extern (D) void error(Loc loc, const(char)* format, ..., string file =
__FILE__, int line=__LINE__);
```
related: https://github.com/dlang/dmd/pull/7831 (that was just for template
variadics)
--
More information about the Digitalmars-d-bugs
mailing list