Re: Does this string processing work for you?



In article <11jp6i1cnaku3d2@xxxxxxxxxxxxxxxxxx>,
"Gary L. Scott" <garyscott@xxxxxxx> wrote:

> Arjen Markus wrote:
> > But what happens with a loop like:
> >
> > read( s, *, err=1 ) ( v(i) ,i=7,100,3 )
> >
> > (By the way the final value of "i" with the Intel Fortran compiler
> > on Linux is 103)
>
> I would think that should be an error. 100 should be interpreted as a
> maximum range value that must not be exceeded. I've no idea of standard
> conformance though.

No. For the non-error case, the standard requires the value 103, just
like you would get out of a "regular" DO loop. Of course, for the error
case, as mentioned before, anything that the compiler does to i is ok,
since the standard says it is undefined.
.



Relevant Pages

  • Re: 4-20mA Analouge input
    ... Im sure there is a standard im meant to be following but im not sure ... between field sensors and process control ... electronics in the control house. ... loop voltage also 'powers' the field sensor device. ...
    (sci.electronics.design)
  • Re: Jump to multiple loop termination line
    ... The standard also "agrees" with this preference in that the practice is obsolescent in the standard. ... That place is inside the outer loop, ... (And the one compiler writer that I referred to before didn't realize it was an extension). ... I have also seen compilers that don't detect the error, but give various "strange" results from it. ...
    (comp.lang.fortran)
  • Re: How do I exit a for loop in C#
    ... AND DONT TRY TO INJECT THEM AS NORM OR STANDARD OR AS ... steadfastly refuse - to make a proof for a generalized statement based on ... supportable, based as a style guide - you dictate the style guide, and I'll ... > while loop than my for loop. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Another String reversal question
    ... Note that long before the STL, it was standard practice in C to use half ... open intervals -- the standard loop over an array, for example, was: ... Applying this logic to reverse "iterators" (where iterator is used to ... the standard reverse loop was: ...
    (comp.lang.cpp)
  • Re: 4-20mA Analouge input
    ... Im sure there is a standard im meant to be following but im not sure ... from a 24vdc power supply. ... loop voltage also 'powers' the field sensor device. ...
    (sci.electronics.design)