Re: Does this string processing work for you?
- From: Richard Maine <nospam@xxxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 07:56:36 -0700
Arjen Markus wrote:
The only thing I am not sure about is whether the count is guaranteed to be available by the standard
It isn't. Heck, you could probably assume that based solely on who posted it, but citing the standard also works. :-)
See item (2) of 9.10.1 of f2003. Notably the "all do-variables... become undefined" bit. You basically can't count on anything in the I/O list when an error occurs on input. I can certainly imagine many implementations where n would end up with various other values here (size(v)+1 is an obvious one).
Yes, I have been bitten by assumptions exactly like this... except that it has been a long time because I stopped assuming this after I got bit once. See signature.
-- Richard Maine | Good judgment comes from experience; email: my first.last at org.domain| experience comes from bad judgment. org: nasa, domain: gov | -- Mark Twain .
- References:
- Does this string processing work for you?
- From: David Frank
- Re: Does this string processing work for you?
- From: Arjen Markus
- Does this string processing work for you?
- Prev by Date: Re: declaring array arguments in subroutines
- Next by Date: Fortran and .NET (C#)
- Previous by thread: Re: Does this string processing work for you?
- Next by thread: Re: Does this string processing work for you?
- Index(es):
Relevant Pages
|
|