D - stdarg
- kinghajj (2/2) Feb 03 2004 Is there a "stdarg" module, or something that does the same thing, in D?
-
Walter
(3/5)
Feb 04 2004
You can do it the same way as in C, except you can't use macros
. - Stewart Gordon (14/16) Feb 04 2004 If we're going to support variable argument lists in D functions, we
Is there a "stdarg" module, or something that does the same thing, in D? (I need to make a function with a variable num. of args)
Feb 03 2004
"kinghajj" <kinghajj_member pathlink.com> wrote in message news:bvq054$2m14$1 digitaldaemon.com...Is there a "stdarg" module, or something that does the same thing, in D? (I need to make a function with a variable num. of args)You can do it the same way as in C, except you can't use macros <g>.
Feb 04 2004
While it was 4/2/04 5:32 am throughout the UK, kinghajj sprinkled little black dots on a white screen, and they fell thus:Is there a "stdarg" module, or something that does the same thing, in D?If we're going to support variable argument lists in D functions, we ought to: - have a typesafe way of doing it - have the method of addressing the arguments built in(I need to make a function with a variable num. of args)So passing in an array isn't adequate? (I guess that when we get round to implementing array literals, any cumbersomeness in this alternative'll generally be overcome.) Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit.
Feb 04 2004