Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!rice!uupsi!grebyn!ckp From: ckp@grebyn.com (Checkpoint Technologies) Newsgroups: comp.lang.c Subject: Re: Expressions in initializers Message-ID: <1991Mar5.042141.21825@grebyn.com> Date: 5 Mar 91 04:21:41 GMT References: <17270@crdgw1.crd.ge.com> <760@ajpo.sei.cmu.edu> <1991Mar4.144939.8311@ux1.cso.uiuc.edu> Organization: Grebyn Timesharing Lines: 12 In article <1991Mar4.144939.8311@ux1.cso.uiuc.edu> mcdonald@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! \/