Thread overview | |||||
---|---|---|---|---|---|
|
February 04, 2004 stdarg | ||||
---|---|---|---|---|
| ||||
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) |
February 04, 2004 Re: stdarg | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinghajj | "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>. |
February 04, 2004 Re: stdarg | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinghajj | 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. |
Copyright © 1999-2021 by the D Language Foundation