K&R-style variadic functions

Jacob Carlborg doob at me.com
Wed Jul 18 11:47:29 PDT 2012


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.

>> Is the same as this C declaration?
>>
>> void foo ();
>
> That is void foo(void) in C++.

-- 
/Jacob Carlborg




More information about the Digitalmars-d mailing list