www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - varargs for extern (C) vs. extern (D)

reply Sean Kelly <sean f4.ca> writes:
I am curious whether there is currently any practical purpose for 
std.stdarg vs. std.c.stdarg, as the implementations look identical to 
me.  Do these both exist just in case something changes at some point, 
or are there already situations where both might be needed?  Is it 
simply that a D program may link against a C library that handles 
varargs somehow differently?


Sean
Dec 15 2005
parent "Walter Bright" <newshound digitalmars.com> writes:
"Sean Kelly" <sean f4.ca> wrote in message 
news:dnsihl$jae$1 digitaldaemon.com...
I am curious whether there is currently any practical purpose for 
std.stdarg vs. std.c.stdarg, as the implementations look identical to me. 
Do these both exist just in case something changes at some point, or are 
there already situations where both might be needed?  Is it simply that a D 
program may link against a C library that handles varargs somehow 
differently?
Both are there because one is the official interface to C variadic functions, and is there for completeness.
Dec 19 2005