C++ and ANSI C

Doug Gwyn gwyn at smoke.BRL.MIL
Sat May 6 02:10:04 AEST 1989


In article <3934 at tekcrl.LABS.TEK.COM> danw at tekchips.LABS.TEK.COM (Daniel E. Wilson) writes:
>In article <1989May4.001911.3382 at utzoo.uucp>, henry at utzoo.uucp (Henry Spencer) writes:
>> 1. "extern foo();" means (so to speak) "extern foo(...);" in ANSI C and
>> 	"extern foo(void);" in C++
>    Number 1 is incorrect since ...

Your explanation was okay, but it didn't contradict Henry's point,
which is correct.  "extern foo();" in source code has the different
meanings indicated in the two languages.  Henry's "(so to speak)"
was a warning that ANSI C doesn't actually support the C++ notation
he used in his explanation.  (Its similar-but-not-identical syntax
for variable-argument functions has yet a different meaning.)



More information about the Comp.lang.c mailing list