Passing _arguments into another variadic function
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Apr 12 05:18:33 PDT 2016
On 4/12/16 5:08 AM, Satoshi wrote:
> Hello, I have a little problem with Variadic functions.
>
> I have function like:
>
> void perform(string method, ...) {
> // here I want to call method findMethod with _argptr and _arguments
>
> }
>
> MethodDesc findMethod(string method, ...) {
> // some lookup through the tables...
> }
>
>
> I know there are variadic templates, but I want to use this style of
> implementation.
>
> Is it possible to pass varargs to another function or must I do it by asm?
>
>
> Thanks for help :)
Tango used to do this (probably still does). I don't remember the
details, but yes, it is definitely possible.
-Steve
More information about the Digitalmars-d-learn
mailing list