variadic functions

BCS ao at pathlink.com
Thu Jan 3 13:56:22 PST 2008


Reply to 0ffh,

> Hrmmnn... I hope this is not the gazillionth time:
> 
> Can I pass on the parameters from one variadic function to the next?
> Just passing on _argptr (in analogy to C) does not seem to work. :(
> 
> regards, frank
> 

WANRING HACK

byte* from = "the lower bound of the args";
byte* to = "the upper bound of the args";
variadicFn(from[0..to-from]);

As long as you arn't using the type safe version that might work.




More information about the Digitalmars-d-learn mailing list