ANSI prototypes, the right choice...

Peter da Silva peter at sugar.hackercorp.com
Mon Feb 11 14:08:11 AEST 1991


In article <1991Feb9.075215.26939 at athena.mit.edu> scs at adam.mit.edu writes:
> Since compilers may issue any warning
> messages they want to, I suspect that Lattice is just trying to
> prod people towards the Party line.

You have it backwards. Lattice accepts mixtures. No other Ansi-compatible
compiler I've used does... including Manx. Most of them take advantage of
the prototypes to generate faster, more efficient function calls. If you
mix declarations you *will* break code. If not now with your current compiler
then eventually with a future compiler.

Please, folks. It gets tiring fixing broken code... either go all the way
with ANSI or stick with K&R.
-- 
Peter da Silva.   `-_-'
<peter at sugar.hackercorp.com>.



More information about the Comp.std.c mailing list