TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Frank Adam
from: David Nugent
date: 1996-10-31 01:58:20
subject: #defines

> DN> if (*MK_FP(here,there))   /* Or VAL if this is your preferred
 > DN> obfuscation */ fptr = func1;
 > Me?Obfuscate?Never!:-)

The correct syntax is:

    Me ? Obfuscate : !Ever; /* :-) */

Don't worry about me - I'm a little jaded on gratuitous use of #define.
Some folks want to write C in other languages (like Pascal) and tend to get
#define happy, which more often than not makes the code incredibly
difficult to read by anyone else but themselves. Somehow they think it more
asthetically pleasing, or perhaps an accomplishment in itself, but unless
there is some intrinsic *technical* value in using a #define (like a
manifest constant or some other common value used in many source places
that may be subject to change at some future date), then it should be
avoided at all costs. IMVHO.

--- MaltEd/2 1.0.b6
* Origin: Unique Computing Pty Limited (3:632/348)
SEEN-BY: 50/99 620/243 623/630 632/103 107 348 360 633/371 634/388 396
SEEN-BY: 635/301 502 503 544 728 639/252 711/409 410 413 430 808 809 932 934
SEEN-BY: 712/515 713/317 714/906 800/1
@PATH: 632/348 635/503 50/99 711/808 934

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™.