Should I convert FORTRAN code to C?

Doug Gwyn gwyn at brl-smoke.ARPA
Thu Jun 30 02:52:18 AEST 1988


In article <829 at garth.UUCP> smryan at garth.UUCP (Steven Ryan) writes:
>C does not provide custom data types either. It permits new structures,
>but those are not orthogonal to the primitive types: no new operators,
>no new casts, (on some implementation) no new assignments, ...

Wrong on all those counts.  C allows casting to any defined type and
assignment of any structure type.  (If you feel like using an array,
wrap a structure around it -- it's free.)  New operators can be
defined as macros or functions.  The one thing missing is overloading
of existing built-in operator tokens such as "*"; C++ supports that
but C does not.  However, operator overloading is vastly overrated;
most operations on extended data types do not map (unambiguously) onto
the conventional arithmetic operations.  Complex numbers are about the
only case that does.



More information about the Comp.lang.c mailing list