Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!suhonen From: suhonen@kunto.jyu.fi (Timo Suhonen) Newsgroups: comp.lang.c Subject: Re: Expressions in initializers Message-ID: Date: 7 Mar 91 09:43:47 GMT References: <17270@crdgw1.crd.ge.com> <760@ajpo.sei.cmu.edu> <1991Mar4.144939.8311@ux1.cso.uiuc.edu> <1991Mar5.042141.21825@grebyn.com> Sender: news@tukki.jyu.fi (News articles) Organization: University of Jyvaskyla, Faculty of Sport and Health Sciences Lines: 15 In-Reply-To: rjc@uk.ac.ed.cstr's message of 5 Mar 91 19:54:14 GMT Nntp-Posting-Host: kunto.jyu.fi rjc@uk.ac.ed.cstr (Richard Caley) writes: ct> You are assuming that the compiler knows what the function sqrt(double) ct> does. I think I've heard of a few that do. Most don't. Is it possible to know before the program is linked (run if you have run time linking!). What stops me from defining my own sqrt? Doesn't ANSI standard let the compiler know the standard functions??? If so, then sqrt(double) can be evaluated at compile time. And I think that is just what every compiler SHOUD do! -- Timo Suhonen I am logged in, therefore I am suhonen@nic.funet.fi suhonen@kunto.jyu.fi Opinions(?) are mine (if not stolen), NOT those of Univ. of Jyvaskyla.