delorie.com/archives/browse.cgi | search |
Date: | Sat, 20 May 2000 17:05:10 -0400 (EDT) |
Message-Id: | <200005202105.RAA25434@indy.delorie.com> |
From: | Eli Zaretskii <eliz AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <eimdisgelllqsd9bblv0j905g4urua5eb9@4ax.com> (message from Damian |
Yerrick on Sat, 20 May 2000 18:35:58 GMT) | |
Subject: | Re: C++, complex, etc |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1000517101641 DOT 4709E-100000 AT is> <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> <eimdisgelllqsd9bblv0j905g4urua5eb9 AT 4ax DOT com> |
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 |
> From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> > 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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |