Re: T edit descriptor and ADVANCE="NO"



In article <1122664387.478362.185090@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Joost" <jv244@xxxxxxxxx> wrote:

> one follow-up question, should :
>
> write(10,*)
> END
>
> generate a file that begins with a blank (and thus is of size 2 after
> adding the assumed line termination) ? Or is there, somehow, no output
> record ?

I'd claim it should generate a record with a blank. It is advancing I/O.
Advancing I/O terminates a record (even if the record is empty). See,
for example, the last sentence of 9.2.3.3 of F2003, which says "In all
other cases, the file is positioned after the record just read or
written and that record becomes the preceding record." The exceptions
mentioned before the "all other cases" involve things like error
conditions, stream, and advance='no'. Zero record length is not an
exception. Yes, a formatted record may have zero length (9.1.1).

But all that stuff is about justifying that a record is indeed written.
I don't think that list-directed can write a record of zero length
(though you can do so with an explicit format).

I don't see any exceptions for zero-length mentioned in the bit about
list-directed starting records with a blank.

--
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
.



Relevant Pages

  • Re: C2124 is most disrespectful of IEEE floating point arithmetic
    ... Treatment of division by zero, forming a remainder using a zero ... For a compile-time expression, ... So depending on our handling of FP exceptions we should see one of two ... we have a compile-time error. ...
    (microsoft.public.vc.language)
  • Re: So whats null then if its not nothing?
    ... The NULL propagation is simple - NULLS in, NULLS out, ... Allowing exceptions means that there will be ... But NULL*0 not being zero is also doing that. ...
    (comp.databases.theory)
  • Re: 2-page viewing of PDFs
    ... Jeffrey Goldberg writes: ... I wasn't aware that there were exceptions. ... If they shifted them all by one, two-page spreads would ... the option to pretend that there's a page zero (ie. to show pages ...
    (comp.sys.mac.apps)
  • Re: Turn off ZeroDivisionError?
    ... by zero: they generate a properly signed INF. ... something surprising. ... Python doesn't generate exceptions for ... "Python just does whatever the underlying hardware does with ...
    (comp.lang.python)