From: fjh@murlibobo.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: Ada's Assembly Language Comments
Date: 1997/07/04
Date: 1997-07-04T00:00:00+00:00 [thread overview]
Message-ID: <5pj11i$364@mulga.cs.mu.OZ.AU> (raw)
In-Reply-To: 33BBD7AC.286F@link.com
Samuel Mize <smize@link.com> writes:
>>...The only justifications I have
>> heard seem rather spurious. (For example: "a student once had
>> compilation problems when an open coment block went off the right hand
>> of the screen with an editor which had line wrapping turned off.")
>
>How about: Experienced professional programmers have accidentally
>commented out good code and accidentally left in bad code, causing
>system failures. We're planning to build mission-critical and
>life-critical systems, so we want to eliminate that risk.
For further evidence that this happens even to experienced professional
programmers, here is an extract from /usr/include/sys/kern/queue.h
on the alpha-dec-osf3.2 system that I'm using.
/*
* Macro: queue_init
* Function:
* Initialize the given queue.
* Header:
* void queue_init(q)
* queue_t q; /* MODIFIED*/
*/
#define queue_init(q) ((q)->next = (q)->prev = q)
The only reason that this code compiles at all is that it is usually
#ifdef'd out.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.
next prev parent reply other threads:[~1997-07-04 0:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-03 0:00 Ada's Assembly Language Comments RC
1997-07-03 0:00 ` Samuel Mize
1997-07-04 0:00 ` Fergus Henderson [this message]
1997-07-07 0:00 ` Tucker Taft
1997-07-08 0:00 ` RC
1997-07-08 0:00 ` RC
1997-07-11 0:00 ` Samuel Mize
1997-07-11 0:00 ` Joerg Rodemann
1997-07-11 0:00 ` Stuart Palin
1997-07-03 0:00 ` Kenneth W. Sodemann
1997-07-04 0:00 ` Richard A. O'Keefe
1997-07-08 0:00 ` Kenneth W. Sodemann
1997-07-08 0:00 ` RC
1997-07-11 0:00 ` Robert Munck
1997-07-11 0:00 ` Dan Johnston D.B.
1997-07-13 0:00 ` Robert Dewar
1997-07-03 0:00 ` Peter Hermann
1997-07-03 0:00 ` RC
1997-07-08 0:00 ` Peter Hermann
1997-07-03 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox