Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!usc!rpi!crdgw1!camelback!volpe From: volpe@camelback.crd.ge.com (Christopher R Volpe) Newsgroups: comp.lang.c Subject: Re: Expressions in initializers Message-ID: <17306@crdgw1.crd.ge.com> Date: 5 Mar 91 13:39:13 GMT References: <17270@crdgw1.crd.ge.com> <760@ajpo.sei.cmu.edu> <1991Mar4.144939.8311@ux1.cso.uiuc.edu> <17294@crdgw1.crd.ge.com> Sender: news@crdgw1.crd.ge.com Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe) Lines: 16 In article <17294@crdgw1.crd.ge.com>, I wrote |> |>"The square root of two" can be evaluated at compile time, but "sqrt(2.0)" |>is an invocation of a function. How is the compiler supposed to know |>what sqrt is? I could have in another file: |> |>double sqrt(double x) |>{ |> return x - 1.0; |>} It was pointed out to me that this is illegal. ================== Chris Volpe G.E. Corporate R&D volpecr@crd.ge.com