[Issue 19057] 2.079 changelog variadic template and default arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 7 10:46:46 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19057

--- Comment #13 from johanengelen at weka.io ---
(In reply to Jonathan M Davis from comment #11)
> 
> I confess that I never would have expected parameters to be allowed after
> variadic arguments though, so the current behavior actually matches up
> extremely well with what I would have expected the behavior to be if we
> allow paramters with default arguments after the variadic parameter.

That argument only makes sense iff default arguments are obligatory for
parameters after variadic parameters. But that's not the case, default
arguments are _not_ required and that has been working for a long time.
The current behavior only makes sense in isolation, but breaks when considering
slightly larger scope (i.e. with _and_ without default argument specified).

--


More information about the Digitalmars-d-bugs mailing list