Path: utzoo!mnetor!uunet!husc6!sri-unix!quintus!ok From: ok@quintus.UUCP (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: Prototypes, was Why NULL is 0 Message-ID: <788@cresswell.quintus.UUCP> Date: 19 Mar 88 04:57:43 GMT References: <2550049@hpisod2.HP.COM> <7412@brl-smoke.ARPA> <3351@chinet.UUCP> <25699@cca.CCA.COM> Organization: Quintus Computer Systems, Mountain View, CA Lines: 13 In article <25699@cca.CCA.COM>, g-rh@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.)