Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!camelback!volpe From: volpe@camelback.crd.ge.com (Christopher R Volpe) Newsgroups: comp.lang.c Subject: Re: When do you use "if ( a = b )"? (was Re: Funny mistake) Message-ID: <18099@crdgw1.crd.ge.com> Date: 1 Apr 91 13:23:54 GMT References: <1991Mar18.195351.11985@unlv.edu> <11109@dog.ee.lbl.gov> <15053@ganymede.inmos.co.uk> <3482@inews.intel.com> <20137@alice.att.com> Sender: news@crdgw1.crd.ge.com Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe) Lines: 28 In article <20137@alice.att.com>, ark@alice.att.com (Andrew Koenig) writes: |>A while ago I remember a big argument about the difference between |>code generated by a particular compiler for this: |> |> a=b-c; |> if(a) |> |>and for this |> |> if(a=b-c) Are a,b,and c all of type "int"? [Deleted description of implementation that gave different results.] |>I believe that this behavior on the part of the compiler |>is entirely reasonable. Even if it's completely non-conforming? |>-- |> --Andrew Koenig |> ark@europa.att.com ================== Chris Volpe G.E. Corporate R&D volpecr@crd.ge.com