K&R-style variadic functions

Paulo Pinto pjmlp at progtools.org
Thu Jul 19 00:33:12 PDT 2012


On Wednesday, 18 July 2012 at 20:13:10 UTC, Walter Bright wrote:
> On 7/18/2012 11:47 AM, Jacob Carlborg wrote:
>> On 2012-07-18 20:43, Walter Bright wrote:
>>> On 7/18/2012 4:59 AM, Jacob Carlborg wrote:
>>>> Does that mean that this C++ declaration:
>>>>
>>>> void foo (...);
>>>
>>> Not allowed in C or C++.
>>
>> When compiling in C++ mode, both Clang and GCC accepts this.
>
> How would you get the arguments inside foo?

As described here,

http://pubs.opengroup.org/onlinepubs/7908799/xsh/varargs.h.html


More information about the Digitalmars-d mailing list