Path: utzoo!attcan!uunet!husc6!mailrus!ames!joyce!sri-unix!garth!smryan From: smryan@garth.UUCP (Steven Ryan) Newsgroups: comp.lang.c Subject: Re: Should I convert FORTRAN code to C? Message-ID: <861@garth.UUCP> Date: 2 Jul 88 21:55:32 GMT References: <2742@utastro.UUCP> <20008@beta.UUCP> <224@raunvis.UUCP> <1189@mcgill-vision.UUCP> <20454@beta.lanl.gov> <829@garth.UUCP> <8184@brl-smoke.ARPA> <836@garth.UUCP> <8201@brl-smoke.ARPA> Reply-To: smryan@garth.UUCP (Steven Ryan) Organization: INTERGRAPH (APD) -- Palo Alto, CA Lines: 11 >Wrong. A C cast operator ALWAYS behaves as if an assignment to >an unnamed temporary variable is performed. All this talk about >"modes" is incorrect. Some people use the word "mode" where others use "type". Don't be picky. I have seen the error of my ways! I now see that similarity of casting (int)(1.2) to (struct a*)(struct-b*-value). Obviously truncating an floating point number is the same as accessing the identical bit pattern as two distinct structs. I now understand why every compiler and programmer agrees to meaning of (unsigned)((short)(-1)).