www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18371] New: allow default parameters after `...` (not just

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 puremagic.com
          Reporter: timothee.cour2 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)

--
Feb 04