Prototypes, was Why NULL is 0
Richard A. O'Keefe
ok at quintus.UUCP
Sat Mar 19 14:57:43 AEST 1988
In article <25699 at cca.CCA.COM>, g-rh at cca.CCA.COM (Richard Harter) writes:
> I mean, of course, none of these things. I was referring to
> the ancient and venerable principle of programming that an entity should
> only be defined in one place.
The trouble is that this conflicts with another ancient and venerable
principle of programming: declaration before use.
The cleanest answer would seem to be to have a set of programming tools
which let you construct a forest of entities (types, variables, functions)
and generate vanilla C code on request. (Sort of an |R**n for C.)
(Preprocessors don't *have* to generate unreadable code; some of the
clearest Fortran I've ever seen came out of a preprocessor.)
More information about the Comp.lang.c
mailing list