Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ted From: ted@cs.utexas.edu (Ted Woodward) Newsgroups: comp.sys.mac.misc Subject: Think C 4.01 bug? Message-ID: <288@libyan.cs.utexas.edu> Date: 4 Apr 91 01:27:26 GMT Organization: U. Texas CS Dept., Austin, Texas Lines: 22 I've been working on a graphics program for my graphics class, and decided to use #define statements to define some constants instead of variables that I set during initialization. I had two constants, let's call them A and B. Here is a (cort of) code fragment: #define A 0x10000 /* fixed point 1 */ #define B 43875L /* a fixed point constant I used; this isn't it */ and later: x = FixMul(A - B,y); this gave me an unmatched ) error when B was #defined, but didn't when B was a variable. -- Ted Woodward (ted@cs.utexas.edu) "Mad scientists HATE shopping for shoes!" -- Peaches