Bug 18371 – allow default parameters after `...` (not just template variadics, which are ok now)

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2018-02-05T00:33:55Z
Last change time
2024-12-13T18:56:41Z
Assigned to
No Owner
Creator
Timothee Cour
Moved to GitHub: dmd#17838 →

Comments

Comment #0 by timothee.cour2 — 2018-02-05T00:33:55Z
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)
Comment #1 by robert.schadek — 2024-12-13T18:56:41Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17838 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB