TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: David Nugent
from: Joshua Marshall
date: 1996-11-03 08:22:26
subject: Re: #defines

Hello David,
 In a message dated 31 Oct 96 you wrote to Frank Adam :

 DN> Don't worry about me - I'm a little jaded on gratuitous use of #define.
 DN> unless there is some intrinsic *technical* value in using a #define
 DN> (like a manifest constant or some other common value used in many
 DN> source places that may be subject to change at some future date), then
 DN> it should be avoided at all costs. IMVHO.

A real handy use for #defines is to use them instead of doing calls to subroutines.

For instance, if you had the subroutine:

void average(int *data, int *result, int size)
{
  int i;

  *result=0;
  for (i=0;i * Origin: It's rude to Point (3:640/201.14{at}fidonet)
SEEN-BY: 633/267 270
@PATH: 640/201 201 820 711/409 808 50/99 635/728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.