Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!ima!ISM780B!jim
From: jim@ISM780B.UUCP
Newsgroups: net.lang.c
Subject: Re: Re: Converting FORTRAN to C
Message-ID: <128@ISM780B.UUCP>
Date: Wed, 9-Jan-85 02:00:18 EST
Article-I.D.: ISM780B.128
Posted: Wed Jan  9 02:00:18 1985
Date-Received: Fri, 11-Jan-85 23:12:57 EST
Lines: 14
Nf-ID: #R:ukma:-43100:ISM780B:25500084:000:735
Nf-From: ISM780B!jim    Jan  5 22:56:00 1985

>Although &p[ARRAYSIZE] may not dereference an invalid location, it's value
>may not have much meaning, either.  For example, if you were running on
>an 80*86 chip, and p was an array filling a segment, then &p[ARRAYSIZE]
>has a value of 0!  In particular, the for loop would terminate immediately.
>I don't believe that this technique is good form, even if it looks like
>it says what you mean more clearly.  And I also don't believe that its
>portable.

A wise compiler writer would never allow the allocation of the last byte
of a segment.  Comparisons to the address one byte beyond the end of an
array are ubiquitous in C code, and it would verge upon insanity to
try to outlaw them.

-- Jim Balter, INTERACTIVE Systems (ima!jim)