CompuServe Messages

IDCMP

#: 28508 S7/ProgrammingForum unknown
    01-Aug-86 01:29:40
Sb: #28276-IDCMP
Fm: wayne hamilton 73047,544
To: Scott Ballantyne 70066,603

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

manx is doing it right. suppose you had said: #define pi 3.0+.14 followed by: area = (r*r)*pi; would you expect the "right" answer? what you'd get is: area = (r*r)*3.0+.14; evaluated as: area = ((r*r)*3.0)+.14; the same thing is happening with boolean instead of arithmetic operators. put parens in your #define and you get what you really(?) wanted. it even "folds" constants.