variadic function: passing args

Walter Bright newshound at digitalmars.com
Tue Jul 4 02:04:11 PDT 2006


icee wrote:
> is there a way to pass the ... args from one variadic function to another
> variadic function?
> 
> consider such case:
> void vf1(int a, ...) {
> 
> vf2(...);
> }
> void vf2(...) {
> }
> 
> can vf2 take _arguments and _argptr from vf1?

No, it works a lot like printf/vprintf. Check out the source to 
std.format for how to do it.



More information about the Digitalmars-d mailing list