(j3.2006) Namelist output
Mon Jan 12 13:54:07 EST 2009
John Reid wrote:
> It has been pointed out to me that the standard is not clear on acceptable forms
> of namelist output for a structure and that compilers are inconsistent as to
> whether they provide the name and a list of values of the components or a list
> of component designators, each followed by a value. My correspondent strongly
> prefers the latter.
> In 10.10.2 of F2003, we have: "The form of the output produced is the same as
> that required for input, except for the forms of real, character, and logical
> values.". This suggests that using component designators is OK, but 10.10.2.2
> says "The name of each namelist group object list item is placed in the output
> record followed by an equals and a list of values of the namelist group object
> list item.".
This last sentence does not seem ambiguous to me. A namelist group
object is a well defined syntax term (R564, page 109 of 09-007).
> And I don't see where form for real, character, and logical values is specified.
This is covered (09-007) by 10.11.4.2 - which references back to the
list-directed section (10,10,4) that specifies forms for real,
character, and logical.
> The same problems occur in f2008, see 10.11.4.1 and 10.11.4.3.
> Do we need an interp?
> J3 mailing list
> J3 at j3-fortran.org
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120
More information about the J3