Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uflorida!haven!decuac!felix!art From: art@felix.UUCP (Art Dederick) Newsgroups: comp.lang.c++ Subject: Re: goodbye cpp ??? (macros vs. inline functions) Message-ID: <72227@felix.UUCP> Date: 30 Nov 88 18:06:19 GMT References: <6590072@hplsla.HP.COM> <1757@dataio.Data-IO.COM> <3637@pt.cs.cmu.edu> <1304@cod.NOSC.MIL> <12903@duke.cs.duke.edu> Reply-To: art@felix.UUCP (Art Dederick) Organization: FileNet Corp., Costa Mesa, CA Lines: 18 Conditional compilation without cpp: const UNIX = TRUE; const MSDOS = FALSE; if (UNIX) { /* code for UNIX systems only */ } else if (MSDOS) { /* code for MSDOS systems only */ } The compiler could dump the code for the constant conditional that evaluates FALSE and keep the code that evaluates TRUE. This is the simplest of optimizations and any compiler that does not do this should be shot (at least the compiler writer should be :-). Art D.