On Thursday, 24 November 2016 at 02:52:05 UTC, Tofu Ninja wrote:
On Thursday, 24 November 2016 at 02:11:21 UTC, ketmar wrote:
On Thursday, 24 November 2016 at 00:51:01 UTC, Tofu Ninja
wrote:
Even with std.traits, you can't know which arguments are
variadic.
sure, you can. see
http://dpldocs.info/experimental-docs/std.traits.variadicFunctionStyle.html
that will return variadic style. and the only argument that
can be variadic is last. it is enough to reconstruct the
signature.
Oh well that is my bad, for some reason I was under the
impression that there could be more than one typesafe variadic.
Still I think the way all of this currently works is very
misleading, certainly there is lots of code out there trying to
replicate call signatures but are doing it wrong. Having
Parameters!(fun) capture things like ref is only going to
mislead people(like me!) into thinking it is enough.
here i agree. ;-) still, i can't think out a better way to do
that. if you have any solid (or at least semi-solid ;-) ideas,
feel free to start a new thread, we love bikeshedding! ;-)