Xref: utzoo comp.lang.c:23393 comp.lang.c++:5262 gnu.g++:487 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!ginosko!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c,comp.lang.c++,gnu.g++ Subject: Re: A solution to the multiple inclusion problem Message-ID: <11424@smoke.BRL.MIL> Date: 27 Oct 89 17:53:23 GMT References: <14240@well.UUCP> <11396@smoke.BRL.MIL> <1989Oct25.164145.29980@utzoo.uucp> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <1989Oct25.164145.29980@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: -Can you elaborate on this, Doug? Seems to me like what he was proposing -- -have compiler recognize files bracketed with `#ifndef FOO_H' and remember -the bracketing -- comes under the "as if" rule. Re-including such a file -with FOO_H defined cannot possibly have any effect except to slow down -the compilation. I received some private correspondence on this also, and apparently I didn't grasp the actual meat of the proposal. I suppose if further #undef/#define of the identifier were properly tracked, it would work.