Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: C's Limited Macro Capabilities Message-ID: <1989Dec4.054712.9176@utzoo.uucp> Organization: U of Toronto Zoology References: <69517@psuecl.bitnet> Date: Mon, 4 Dec 89 05:47:12 GMT In article <69517@psuecl.bitnet> bpm@psuecl.bitnet (Brian Moquin) writes: >A student in my C class asked me an interesting question: can you have >conditional compilation directives embedded within '#define' macros? >The answer is no. The student pointed out that this then >severely limits the macro capabilities of C... He is correct. C is not intended to be the answer to all the world's problems. In particular, the C preprocessor is not intended to be an all-singing-all-dancing Turing-capable macro language. As Dennis put it: "If you want PL/I, you know where to find it." -- Mars can wait: we've barely | Henry Spencer at U of Toronto Zoology started exploring the Moon. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu