www.digitalmars.com         C & C++   DMDScript  

D - stdarg

reply kinghajj <kinghajj_member pathlink.com> writes:
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
next sibling parent "Walter" <walter digitalmars.com> writes:
"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
prev sibling parent Stewart Gordon <smjg_1998 yahoo.com> writes:
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