[Issue 4172] Improve varargs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 25 22:09:48 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4172
--- Comment #2 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> 2010-11-25 22:08:23 PST ---
(In reply to comment #1)
> The clean way to fix this (and what LDC does) is to pack all arguments
> (aligning them) in a stack allocated array, create the typeinfo array, and then
> call the function passing to it a void* to the packed array and the typeinfo
> array.
Doesn't dmd do the same?
More handy way is to pack arguments into struct and pass single TypeInfo for
that struct. It already has all necessary align and offset info there.
--
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