Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!husc6!panda!genrad!decvax!minow
From: minow@decvax.UUCP (Martin Minow)
Newsgroups: comp.lang.c
Subject: Re: Readable code -- #define ONE 1
Message-ID: <117@decvax.UUCP>
Date: Wed, 15-Jul-87 20:51:24 EDT
Article-I.D.: decvax.117
Posted: Wed Jul 15 20:51:24 1987
Date-Received: Sat, 18-Jul-87 01:42:12 EDT
References: <8291@brl-adm.ARPA>
Reply-To: minow@decvax.UUCP (Martin Minow)
Organization: Digital Eq. Corp. - Merrimack NH.
Lines: 14

In article <8291@brl-adm.ARPA> gea@Iago.Caltech.EDU (Gary Ansok) writes:
> Also, it can lead to nonsense like
>`#define ONE 1' from people who don't understand.

This *specific definition* is useful if you have to work with a poor
printer that doesn't distinguish between 1 and l.  In general, of
course, the constant should be given a descriptive definition:
	#define EXIT_SUCCESS	0
	#define EXIT_ERROR	1
	...
	exit(EXIT_ERROR);

Martin Minow
decvax!minow