[Issue 4172] Improve varargs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 29 21:58:05 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4172



--- Comment #9 from Walter Bright <bugzilla at digitalmars.com> 2010-11-29 21:56:33 PST ---
Unfortunately, the 64 bit C ABI is rather disastrously complex for varargs. I
went back and forth for a while on how to implement it, and whether to use the
C ABI for D variadic functions as well as C variadic functions.

I finally decided that, although the C variadics were inefficient, they are
used rarely enough that it doesn't much matter, and that D will follow the C
ABI.

The result is a much expanded and more complex std.c.stdarg implementation.

We can revisit this and look into making it more efficient later, but for now I
just want to get it working.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list