digitalmars.D.learn - windows 64bit variadic functions
- Benjamin Thaut (15/15) Feb 09 2013 I have this small test program, it will crash when compiled on x64
I have this small test program, it will crash when compiled on x64 windows, but it works fine on 32bit windows. What am I doing wrong? import core.vararg; import std.stdio; void print(string fmt, ...) { auto arg = va_arg!(const(char)[])(_argptr); writefln(fmt ~ arg); } void main(string[] args) { print("+++","---"); } Kind Regards Benjamin Thaut
Feb 09 2013