[Issue 19057] 2.079 changelog variadic template and default arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 5 22:08:23 UTC 2018


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

--- Comment #10 from johanengelen at weka.io ---
(In reply to Steven Schveighoffer from comment #9)
> (In reply to johanengelen from comment #7)
> > This did break code at Weka, luckily in non-silent way, but now I probably
> > will have to modify the old compiler to error on these things, to not cause
> > trouble with silently broken code.
> 
> I'm curious if there is any reason to have default parameter specification
> in any of these cases. Given that you could never use the default parameters
> anyway (you had to specify them all), isn't the fix to just change them all
> to not have default values?

Indeed, the fix is trivial. But finding all places to fix it may not be so
easy. Perhaps it's not so bad and a regexp search will find them. I was happy
to find out that it never really worked.

--


More information about the Digitalmars-d-bugs mailing list