Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!quintus!ok From: ok@quintus.uucp (Richard A. O'Keefe) Newsgroups: comp.lang.c++ Subject: Re: Including header files minimally. Message-ID: <738@quintus.UUCP> Date: 24 Nov 88 02:01:48 GMT References: <3561@pt.cs.cmu.edu> <7860@nsc.nsc.com> <3614@pt.cs.cmu.edu> <10873@ulysses.homer.nj.att.com> <1073@actnyc.UUCP> Sender: news@quintus.UUCP Reply-To: ok@quintus.UUCP (Richard A. O'Keefe) Organization: Quintus Computer Systems, Inc. Lines: 9 Instead of tinkering with the definition of an existing construct, why not do the sanitary thing and add a new one? #use {filename} resolve a "filename" or as #include would, and if that resolved file name has already been #included or #used, do nothing otherwise #include it. Easy to do, can't break old code, doesn't require changes to the file being used. In fact, if you record the usage of the filename when the #include or #use is _started_, you can even have files which #use each other (this can be useful).