anderberg wrote:
> On 2005-12-07, wrote:
>
>>void func();
>>void func(void);
>>
>>In C these two mean different things. In C++ they are exactly
>>equivalent. In C++, void func() *is* explicit. It means that func takes
>>no parameters.
>>
>>C++ programmers do not expect to see a redundant 'void' in the formal
>>parameter list any more than they expect to see a redundant 'auto' in
>>front of every local variable declararion.
>
>
> Point taken. I'll make a habit not to use it, then. Last six years
> of embedded C has obviously left a legacy.
Not to mention that many of us still program in both languages, and
while *yes, we know* that they're not the same language, in practice
things tend to run together.
--
Mike Smith