Re: Syntax of Comments (was: language design tradeoffs)

macrakis@osf.org (Stavros Macrakis)
Thu, 24 Sep 1992 20:52:42 GMT

          From comp.compilers

Related articles
[4 earlier articles]
Re: Syntax of Comments (was: language design tradeoffs) tmb@arolla.idiap.ch (1992-09-23)
Re: Syntax of Comments (was: language design tradeoffs) jlg@cochiti.lanl.gov (1992-09-23)
Re: Syntax of Comments (was: language design tradeoffs) jimc@tau-ceti.isc-br.com (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) crowl@jade.cs.orst.edu (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) crowl@jade.cs.orst.edu (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) beshers@hks.com (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) macrakis@osf.org (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) fjh@munta.cs.mu.OZ.AU (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) delacour@parc.xerox.com (Vincent Delacour) (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) macrakis@osf.org (1992-09-25)
Re: Syntax of Comments (was: language design tradeoffs) de19@umail.umd.edu (1992-10-04)
Re: Syntax of Comments (was: language design tradeoffs) Bruce.Hoult@bbs.actrix.gen.nz (1992-10-05)
Re: Syntax of Comments (was: language design tradeoffs) tmb@arolla.idiap.ch (1992-10-06)
[4 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers,comp.human-factors
From: macrakis@osf.org (Stavros Macrakis)
Organization: OSF Research Institute
Date: Thu, 24 Sep 1992 20:52:42 GMT
References: 92-09-048 92-09-157
Keywords: C, design, comment

jimc@tau-ceti.isc-br.com (Jim Cathey) writes:


      I for one appreciate the hell out of cpp, because it allows me to maintain
      _one_ source for many slightly different environments. That is, I use the
      #ifdef for what it was primarily intended for, rather than an elaborate
      commenting mechanism....


Why ifdef's are a bad idea (reason #132):


How do you check your code for type-correctness and syntax-correctness in
the presence of many #ifdef's? Do you compile every possible combination
at least once?
[Other messages have noted that, given the differing extensions among
various C compilers, not all combinations will necessarily be valid on each
machine. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.