[Issue 2] Structs with toString() method not formatted properly

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Mon Jul 16 03:14:08 PDT 2012


http://gdcproject.org/bugzilla/show_bug.cgi?id=2

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> 2012-07-16 10:14:08 UTC ---
Documentation on known differences should be updated.

DMD on 64bit has a runtime library implementation that retrieves the next
variadic argument based on it's TypeInfo and it's tsize().

eg:  auto va = va_arg(ap, ti);


GDC uses it's GCC's built-in VA_ARG_EXPR, which depends on the type being known
at compile time in order to work.

eg: auto va = va_arg!(Foo)(ap);


There is no way around this other than implementing a new runtime function
which does a similar job that DMD's implementation does, but have it specific
for the way GDC passes variadic arguments to the callee.

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.


More information about the D.gnu mailing list