digitalmars.D - varargs for extern (C) vs. extern (D)
- Sean Kelly (7/7) Dec 15 2005 I am curious whether there is currently any practical purpose for
- Walter Bright (4/10) Dec 19 2005 Both are there because one is the official interface to C variadic
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
"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