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: nob...@puremagic.com
          Reporter: timothee.co...@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)

--

Reply via email to