Re: storing an integer in a double precision
- From: gmail-unlp <ftinetti@xxxxxxxxx>
- Date: Sat, 7 May 2011 03:21:03 -0700 (PDT)
On May 7, 3:21 am, Ron Shepard <ron-shep...@xxxxxxxxxxxxxxxxxx> wrote:
In article <1k0vbos.tt28xw1d2sa2oN%nos...@xxxxxxxxxxxxx>,
nos...@xxxxxxxxxxxxx (Richard Maine) wrote:
You also seem to have elided my comment that
Also note that the value of i after the DO loop terminates should be
huge(i)+1, which puts you in "anything can happen" territory.
I think that is very pertinent, which is why I said it. Because of that,
nothing in the stanard basically guarantees anything for the program.
No, you don't get to limit the ways in which that could possibly cause
problems. The program is nonconforming and the compiler is allowed to do
all kinds of strange or not-so-strange things. It isn't required to
operate as otherwise expected up to that point. For example, a compiler
could, in principle, notice the problem and refuse to compile the code.
I agree that this is the real feature that makes the code
nonstandard. If it were not for that requirement, then I would
think that if the compiler did not execute the loop 6 times, then it
would be a compiler bug.
But, as you say, since it cannot satisfy the N+1 requirement after
the loop, it is allowed to fail in any other way too, including
never exiting the loop (or starting WWIII).
$.02 -Ron Shepard
I see (I think), the problem is that the Do loop control variable
after the loop would have a "wrong" value, which could cause that the
program never starts, for example... how is this explained in the
standard?
Fernando.
.
- Follow-Ups:
- Re: storing an integer in a double precision
- From: Richard Maine
- Re: storing an integer in a double precision
- References:
- storing an integer in a double precision
- From: Lynn McGuire
- Re: storing an integer in a double precision
- From: Richard Maine
- Re: storing an integer in a double precision
- From: steve
- Re: storing an integer in a double precision
- From: tholen
- Re: storing an integer in a double precision
- From: robin
- Re: storing an integer in a double precision
- From: gmail-unlp
- Re: storing an integer in a double precision
- From: robin
- Re: storing an integer in a double precision
- From: Ron Shepard
- Re: storing an integer in a double precision
- From: Richard Maine
- Re: storing an integer in a double precision
- From: steve
- Re: storing an integer in a double precision
- From: Richard Maine
- Re: storing an integer in a double precision
- From: Ron Shepard
- storing an integer in a double precision
- Prev by Date: Re: storing an integer in a double precision
- Next by Date: Re: storing an integer in a double precision
- Previous by thread: Re: storing an integer in a double precision
- Next by thread: Re: storing an integer in a double precision
- Index(es):
Relevant Pages
|