variadic funtions

Tomas Lindquist Olsen tomas at famolsen.dk
Mon Feb 12 19:14:11 PST 2007


Jarrett Billingsley wrote:

> 
> You would think that this kind of stuff could be automated.  I mean, if
> I'm in a variadic function, and I call another variadic function with
> '...' in
> its parameter list, shouldn't that be obvious what I mean?  Can't the
> compiler just go "oh, well I guess I can just forward the _arguments and
> _argptr params to that variadic function"?  It seems like something that
> would be relatively easy to implement.  I don't know, maybe it has
> something to do with the code generation.
> 

Yeah... It does seem like a "missing" feature.
Though the ABI really doesn't give you a clue.
(or I just dont get what "_arguments", "hidden" and "this" mean...)



More information about the Digitalmars-d-learn mailing list