Expressions in initializers
Checkpoint Technologies
ckp at grebyn.com
Tue Mar 5 14:21:41 AEST 1991
In article <1991Mar4.144939.8311 at ux1.cso.uiuc.edu> mcdonald at aries.scs.uiuc.edu (Doug McDonald) writes:
>sqrt(2.0) is an expression. It CAN be evaluated at compile time. Perhaps
>some people don't want to write compilers that do that (i.e. they are too
>lazy), but it most certainly CAN be evaluated.
You are assuming that the compiler knows what the function sqrt(double)
does. I think I've heard of a few that do. Most don't.
--
First comes the logo: C H E C K P O I N T T E C H N O L O G I E S / /
\\ / /
Then, the disclaimer: All expressed opinions are, indeed, opinions. \ / o
Now for the witty part: I'm pink, therefore, I'm spam! \/
More information about the Comp.lang.c
mailing list