consistency in declaration

Karl Heuer karl at haddock.ima.isc.com
Tue Jun 20 05:02:33 AEST 1989


In article <14544 at watdragon.waterloo.edu> jyegiguere at lion.waterloo.edu (Eric Giguere) writes:
>>>[compiler refuses to accept a prototype with half-named args:]
>>>	void foo(int , int y);
>Personally I prefer the approach that a prototype either declares identifiers
>for all the parameters or leaves them all out.  I really can't see any reason
>for the inconsistent notation.

I agree, but personal preferences shouldn't be strictly enforced by the
compiler.  My recommendation is to downgrade it to a warning.  (The pANS
imposes no constraints on warnings, though personally I feel that everything
questionable should have an OPTIONAL warning attached to it.)

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list