From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,458fddd6852abb36,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-03-23 09:34:13 PST Path: sparky!uunet!mcsun!marble.uknet.ac.uk!uknet!glasgow!unix.brighton.ac.uk!je From: je@unix.brighton.ac.uk (John English) Newsgroups: comp.lang.ada Subject: Re: Function call or variable? Message-ID: <1993Mar23.160213.4246@unix.brighton.ac.uk> Date: 23 Mar 93 16:02:13 GMT References: Organization: University of Brighton, UK Date: 1993-03-23T16:02:13+00:00 List-Id: eachus@spectre.mitre.org (Robert I. Eachus) writes: : > Not necessarily. You could use #define to ensure that the program is : > changed in only one place. I don't believe I've ever seen any C code : > that's designed like this, though. : : No, no, no. I have seen C code like this, and I have seen people : use #defines to change things. And I have seen the code compile : cleanly and work in simple cases but break horribly later. These days any sensible C programmer uses "const", not "#define". Avoids headaches without aspirin. -- ------------------------------------------------------------------------------- John English | "There are basically two types of dicks, Dept. of Computing | hard dicks and floppy dicks." University of Brighton | -- from a student essay on storage media E-mail: je@unix.brighton.ac.uk | "Disks are divided into sex & tractors." Fax: 0273 642405 | -- from one of my lectures (on a bad day) -------------------------------------------------------------------------------