Date: Sat, 20 May 2000 17:05:10 -0400 (EDT) Message-Id: <200005202105.RAA25434@indy.delorie.com> From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: (message from Damian Yerrick on Sat, 20 May 2000 18:35:58 GMT) Subject: Re: C++, complex, etc References: <39224964 DOT BBFA67CB AT mtu-net DOT ru> <8fu3ke$fd0$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3922E117 DOT 561584EE AT mtu-net DOT ru> <8g0bq1$b09$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Damian Yerrick > Date: Sat, 20 May 2000 18:35:58 GMT > > It can, however, be tested at compile time, right? Wrong. > #if sizeof(size_t) == sizeof(unsigned int) > foo(); > #else > bar(); > #endif This is not valid C: sizeof is a compile-time operator, the preprocessor knows nothing about it. Since #if is processed by the preprocessor, you get a parse error.