For Programmers: Free Programming Magazines  


Home > Archive > Fortran > May 2006 > Re: Bounds Check Overhead









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Bounds Check Overhead
glen herrmannsfeldt

2006-05-26, 7:04 pm

Ludovic Brenta wrote:

(snip)

> Also, in Ada, the loop index does not exist outside of the loop. From
> what you said, it seems to me that in Fortran, the loop index still
> exists after the loop, and has a well-defined value, but the
> programmer can then change it. Correct?


In Fortran 66 the loop index value was not defined for a normally
terminated DO loop. If you GOTO out of the loop, it was defined.
This was changed in Fortran 77.

In all cases, the program can change it outside the loop.
(Well, I would rather not mention "extended range of DO".)

-- glen


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com