[Issue 4172] Improve varargs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 30 01:21:19 PST 2010


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



--- Comment #13 from nfxjfg at gmail.com 2010-11-30 01:19:50 PST ---
PS: passing a void[]* instead of void* would also allow users to build varargs
at on the call site.

Backward compatibility with the old way (for D1) can be achieved by naming the
void*[] _argarray, and by setting _argptr to _argarray[0], and making the
compiler write all arguments in a linear array. (That would be done for
transition. The "old" way of traversing args would be declared deprecated.)

-- 
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