On Thu, Dec 6, 2012 at 10:02 AM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wednesday, December 05, 2012 19:40:44 Gor Gyolchanyan wrote:<br>
> A function with variadic template parameters is just a function which takes<br>
> a set of compile-time known parameters.<br>
> My goal is to have a non-template function taking variadic parameters.<br>
><br>
> long bar(...)<br>
> {<br>
>     return foo(...);<br>
> }<br>
><br>
> This is necessary to be able to pass variables to functions without knowing<br>
> the type of the functions.<br>
<br>
</div>Then read the section on variadic functions and pick which type works best for<br>
you: <a href="http://dlang.org/function.html" target="_blank">http://dlang.org/function.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span><br>
<br>
P.S. Please stop top posting. It's generally considered rude in lists like<br>
this.<br>
</blockquote></div><br>Sorry, force of habit. Gmail puts me at the top and hides the message by default,</div><div class="gmail_extra">I read about the d-style variadic functions and I also read the ABI.</div><div class="gmail_extra">
There are some vast differences in the ABI (the parameters are pushed in reverse order, the caller must clean the stack...).</div><div class="gmail_extra">I thought that you guys have a better understanding of what's going on, so you might help me with this.</div>
<div class="gmail_extra">If done carefully it could be a very valuable addition to std.functional.</div><div class="gmail_extra"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>