Thread overview
[Issue 2] Structs with toString() method not formatted properly
Jul 16, 2012
Iain Buclaw
Sep 26, 2012
Johannes Pfau
Sep 26, 2012
Iain Buclaw
July 16, 2012
http://gdcproject.org/bugzilla/show_bug.cgi?id=2

--- Comment #1 from Iain Buclaw <ibuclaw@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.
September 26, 2012
http://gdcproject.org/bugzilla/show_bug.cgi?id=2

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johannespfau@gmail.com

--- Comment #3 from Johannes Pfau <johannespfau@gmail.com> 2012-09-26 09:01:43 UTC ---
Can we close this bug report?

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.
September 26, 2012
http://gdcproject.org/bugzilla/show_bug.cgi?id=2

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Iain Buclaw <ibuclaw@gdcproject.org> 2012-09-26 11:26:25 UTC ---
If your happy. Closed.

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