From jkr@jkr.cc.rl.ac.uk  Tue Feb 27 13:52:07 2001
Received: from nameserv.rl.ac.uk (nameserv.rl.ac.uk [130.246.135.129])
	by dkuug.dk (8.9.2/8.9.2) with ESMTP id NAA17101
	for <SC22WG5@dkuug.dk>; Tue, 27 Feb 2001 13:52:06 +0100 (CET)
	(envelope-from jkr@jkr.cc.rl.ac.uk)
Received: from jkr.cc.rl.ac.uk (jkr.cc.rl.ac.uk [130.246.8.20])
	by nameserv.rl.ac.uk (8.8.8/8.8.8) with ESMTP id MAA06129
	for <SC22WG5@dkuug.dk>; Tue, 27 Feb 2001 12:52:05 GMT
Received: (from jkr@localhost)
	by jkr.cc.rl.ac.uk (8.8.8+Sun/8.8.8) id MAA25804
	for SC22WG5@dkuug.dk; Tue, 27 Feb 2001 12:53:55 GMT
Date: Tue, 27 Feb 2001 12:53:55 GMT
From: John Reid <jkr@rl.ac.uk>
Message-Id: <200102271253.MAA25804@jkr.cc.rl.ac.uk>
To: SC22WG5@dkuug.dk
Subject: Re: Iterpretation 25 (List-directed input): Draft response
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

Dear WG5,
         Here is my next draft interpretation response. This was
discussed at Oulu without reaching a resolution. WG5 commented as
follows (WG5/N1410)

   Section 10.8 [175:7-9] states: "The r*c form is equivalent to r
   successive appearances of the constant c, and the r* form is
   equivalent to r successive appearances of the null value."

   WG5/interp  was unable to agree on whether r*c implied r copies of
   the characters in c or r copies of the constant implied by c,
   possibly after the association of the first copy in the input record
   with its associated list item.  Both interpretations are possible
   from the text.  The answer to the question is accordingly no or
   yes.

I have prepared a draft answer based on the first alternative, because
I believe that this is what was intended and it is what most compilers
do.

I would appreciate comments before I send it to J3, preferably to me in
private. 

Cheers,

John. 


..................................................

NUMBER: 000025
TITLE: List-directed input: types of variables corresponding to repeated values
KEYWORDS:
DEFECT TYPE: Erratum
STATUS: J3 consideration in progress

QUESTION:

When a repeat count is used in list-directed input, must all the variables into
which the repeated value is read have the same type?  I see no reason in the
standard to assume that restriction, but at least one Fortran 90 implementation
assumes it.

ANSWER:

No, the variables are not required to be of the same type, but it is
intended that the whole of <c> be acceptable for each item corresponding
to the input form <r*c>. For example, the input
   2*(1.0, 0.0)
does not conform to the standard when any of the list items is of type
character.

An edit is provided to clarify the situation.


EDIT:  

Page 175. At the end of the first paragraph of subclause 10.8.1
[175:33] add
     The types of the items corresponding to an <r*c> input form may
     differ provided the whole of <c> is acceptable for each item.

SUBMITTED BY: Robert Corbett
HISTORY:  98-155   m145 Submitted (part 3)
          WG5/N1410     Draft answer
