Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 21, 2003 Syntax Q: | ||||
---|---|---|---|---|
| ||||
Which or both of these syntaxes are legal for declaring a varargs function? void foo(char a, ...) {;}; void foo(char a...) {;}; |
January 21, 2003 Re: Syntax Q: | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russell Lewis | "Russell Lewis" <spamhole-2001-07-16@deming-os.org> escribió en el mensaje news:3E2DA027.8070308@deming-os.org... | Which or both of these syntaxes are legal for declaring a varargs function? | | void foo(char a, ...) {;}; | void foo(char a...) {;}; | the first ------------------------- Carlos Santander http://carlos3.netfirms.com/ "Russell Lewis" <spamhole-2001-07-16@deming-os.org> escribió en el mensaje news:3E2DA027.8070308@deming-os.org... | Which or both of these syntaxes are legal for declaring a varargs function? | | void foo(char a, ...) {;}; | void foo(char a...) {;}; | the first ------------------------- Carlos Santander http://carlos3.netfirms.com/ |
January 21, 2003 Re: Syntax Q: | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos | Carlos wrote:
> "Russell Lewis" <spamhole-2001-07-16@deming-os.org> escribió en el mensaje
> news:3E2DA027.8070308@deming-os.org...
> | Which or both of these syntaxes are legal for declaring a varargs
> function?
> |
> | void foo(char a, ...) {;};
> | void foo(char a...) {;};
> |
>
> the first
That was my thought, though I wanted Walter to confirm it.
Also, if anybody has the latest version of DMD, can you check things:
* Does DMD allow you to use the 2nd syntax?
* Does the declaration of
char[] fmt(char[] format, generic[] args...)
in phobos/format.d still use the 2nd syntax? I have an old copy of phobos (the one I got when I installed DLI 0.1.2), and it has that.
|
January 21, 2003 Re: Syntax Q: | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russell Lewis | "Russell Lewis" <spamhole-2001-07-16@deming-os.org> escribió en el mensaje news:3E2DA498.30209@deming-os.org... | Carlos wrote: | > "Russell Lewis" <spamhole-2001-07-16@deming-os.org> escribió en el mensaje | > news:3E2DA027.8070308@deming-os.org... | > | Which or both of these syntaxes are legal for declaring a varargs | > function? | > | | > | void foo(char a, ...) {;}; | > | void foo(char a...) {;}; | > | | > | > the first | | That was my thought, though I wanted Walter to confirm it. | | Also, if anybody has the latest version of DMD, can you check things: | * Does DMD allow you to use the 2nd syntax? no, it doesn't | * Does the declaration of | char[] fmt(char[] format, generic[] args...) | in phobos/format.d still use the 2nd syntax? I have an old copy of | phobos (the one I got when I installed DLI 0.1.2), and it has that. | dli supports that, but dmd doesn't, AFAIR ------------------------- Carlos Santander http://carlos3.netfirms.com/ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 2003-01-21 |
January 21, 2003 Re: Syntax Q: | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russell Lewis | > Also, if anybody has the latest version of DMD, can you check things:
> * Does DMD allow you to use the 2nd syntax?
> * Does the declaration of
> char[] fmt(char[] format, generic[] args...)
> in phobos/format.d still use the 2nd syntax? I have an old copy of
> phobos (the one I got when I installed DLI 0.1.2), and it has that.
>
No...It does not work.
|
Copyright © 1999-2021 by the D Language Foundation