(j3.2006) Namelist output

John Reid John.Reid
Tue Jan 13 10:37:09 UTC 2009


Bill Long wrote:
> 
> 
> John Reid wrote:
>> J3,
>>
>> 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).

Agreed. If this was intended, the sentence at the start of 10.10.2 is wrong. 
These words are unchanged from f90 and I remember then that the i/o group was 
inclined to say 'name' when they meant 'name or designator'. I would like to 
know if everyone is agreed that compilers that use component designators in 
namelist output are non-conforming. Or did we intend that this be an allowed 
option?

Cheers,

John.




More information about the J3 mailing list