P
peter_ammon
The C++ grammar appears to admit (and g++ accepts)
void function(...);
In such a function, how do you access any of the parameters? And what
was the motivation for allowing functions of this type where C forbids
them?
I also notice that C++ makes the comma optional, whereas it's mandatory
in C. That is, this is a legal prototype:
void function2(int ...);
What is the motivation for this change?
Followups set to comp.lang.c++
Thanks,
-Peter
void function(...);
In such a function, how do you access any of the parameters? And what
was the motivation for allowing functions of this type where C forbids
them?
I also notice that C++ makes the comma optional, whereas it's mandatory
in C. That is, this is a legal prototype:
void function2(int ...);
What is the motivation for this change?
Followups set to comp.lang.c++
Thanks,
-Peter