Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!ditka!comeau From: comeau@ditka.Chicago.COM (Greg Comeau) Newsgroups: comp.sys.amiga.programmer Subject: Re: Compiler code (was a flame fest) Message-ID: <37227@ditka.Chicago.COM> Date: 21 Apr 91 17:29:34 GMT References: <1991Apr16.001748.26530@uncecs.edu> <1991Apr16.183638.12808@cs.cornell.edu> <1991Apr17.180342.25312@engin.umich.edu> Sender: news@ditka.chicago.com (Pulitzer at ditka) Reply-To: comeau@csanta.attmail.com (Greg Comeau) Organization: Comeau Computing Lines: 26 In article <1991Apr17.180342.25312@engin.umich.edu> milamber@caen.engin.umich.edu (Daryl Cantrell) writes: >In article <1991Apr16.183638.12808@cs.cornell.edu> johnhlee@cs.cornell.edu (John H. Lee) writes: >>In article <1991Apr16.001748.26530@uncecs.edu> urjlew@uncecs.edu (Rostyk Lewyckyj) writes: >>2) The C language specifies a *very* a clear order for evaluations. May I >>suggest you read the book by Kernighan and Ritchie, _The C Programming >>Language_. > I don't think you take his meaning... If you have an expression like > a * b + c * d >C defines the order of operations with regard to the operators. > To the original (?) poster: What difference does it make how it happen- >ned? it makes a difference how it happens because as you say, c*d could happen before a*b, as well as a few other things (and this is a simple) case. Bottom line is that the order *can* effect the resulting value of the expression. - Greg -- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418 Producers of Comeau C++ Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421 Voice:718-945-0009 / Fax:718-441-2310