June 09, 2015 [Issue 2599] Two variadic parameters should be accepted | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2599 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |D2 -- |
August 06, 2020 [Issue 2599] Two variadic parameters should be accepted | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2599 Mathias LANG <pro.mathias.lang@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |pro.mathias.lang@gmail.com Resolution|--- |WONTFIX --- Comment #7 from Mathias LANG <pro.mathias.lang@gmail.com> --- As mentioned, you can write: ``` template f(T1...) { void f(T2...)(T2 args) { ... } } ``` And it works. I recently introduced it in `core.atomic` for example, although not with variadic arguments. It covers the asked for feature exactly (provide the same interface) and has been working for a long time. Since this has not seen action for over a decade, and would just allow to write the same thing differently, I'm going to close it as WONTFIX. -- |
Copyright © 1999-2021 by the D Language Foundation