Converting FORTRAN to C

Norman Diamond ndiamond at watdaisy.UUCP
Thu Jan 3 04:37:57 AEST 1985


> type_t array[ARRAYSIZE];
> ...
>     type_t *p;
>     for (p = array; p < &array[ARRAYSIZE]; p++)
> I get VERY ANGRY at compilers like Whitesmiths' (for VAX/VMS, at least) that
> get upset about this construct.

In that case, it sounds like Whitesmiths' compiler is broken.

Incidentally, Pascal doesn't have an address-of operator (&), so a comparison
to Pascal cannot be made.  Also, I haven't seen a Pascal compiler that forced
bounds checking on users whether they wanted it or not -- though I could imagine
that a tool for teaching first-year students would do so.  However, anyone who
criticizes the availability of such debugging tools (wimpish, etc.) should be
denied access to all debugging tools other than post-mortem dumps printed in
hex (or octal) on a line printer.  Sure, I've read OS dumps too, but debugging
takes an order of magnitude longer.

-- Norman Diamond

UUCP:  {decvax|utzoo|ihnp4|allegra|clyde}!watmath!watdaisy!ndiamond
CSNET: ndiamond%watdaisy at waterloo.csnet
ARPA:  ndiamond%watdaisy%waterloo.csnet at csnet-relay.arpa

"Opinions are those of the keyboard, and do not reflect on me or higher-ups."



More information about the Comp.lang.c mailing list