Should I convert FORTRAN code to C?

Steven Ryan smryan at garth.UUCP
Sun Jul 3 07:55:32 AEST 1988


>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)).



More information about the Comp.lang.c mailing list