www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Variadic Functions (D1)


I was wondering how exactly one is supposed to write variadic functions =
in  =

D1 now, especially with the new ABI in 64bit?
The way the specification says (just using _argptr and _arguments) doesn=
't  =

seem to yield correct results.
Additionally, you seem to have to do it differently for each compiler.  =

Some using some strange va_* functions.
What is the best practice here, keeping cross-compiler compability in mi=



-- =

Mathias Baumann
Research and Development

sociomantic labs GmbH
M=C3=BCnzstra=C3=9Fe 19
10178 BERLIN


Fon:           +49 (0)30 5015 4701
Fax:           +49 (0)30 2403 6715
Skype:         Mathias Baumann (m4renz)

sociomantic labs GmbH, Location: Berlin
Commercial Register - AG Charlottenburg: HRB 121302 B
VAT No. - USt-ID: DE 266262100
Managing Directors: Thomas Nicolai, Thomas Brandhoff
Feb 25 2011