J3/01-300 Date: 6 July 2001 To: J3 From: WG5 members Subject: Interpretation JP-17 (Multiple occurrence of namelist group object in namelist group) WG5 members in London considered Interp JP-17 and recommended as follows. The current version is attached for your convenience. ISO/IEC JTC1/SC22/WG5 N1464 Suggested answer for JP-17 Preferred Answer to Interpretation JP-17 It is recommended that the interpretation should be processed as it stands. It is clear from the text that the possibility (of a variable name appearing more than once in a single namelist) simply was not considered. Allowing this would not appear to offer functionality, merely a chance for the user to make a mistake. Alternative Answer to Interpretation JP-17 If the preferred answer to JP-17 is rejected, it was noted that there were no clear semantics for the multiple occurrence situation. Here is the alternative answer in that situation. ANSWER: It is permissible for a variable to appear twice in a single namelist. An edit is supplied to clarify the semantics in this situation. EDIT: [66:10+] Append new sentence "If a variable appears more than once in a namelist group its value is written once for each appearance, in the order of each appearance." ---------------------------------------------------------------------- NUMBER: JP-17 TITLE: Multiple occurrence of namelist group object in namelist group KEYWORDS: DEFECT TYPE: STATUS: J3 consideration in progress QUESTION: JP-17) 5.4 3rd paragraph after R545 and constraints states that: "A namelist group object may be a member of more than one namelist group." Can a namelist group object occur more than once in one namelist group? Is the following NAMELIST statement standard conforming? NAMELIST /NLIST/A,B,A ANSWER: No. EDIT: [66:14] Add new sentence at the end of the line: "A namelist group object shall not appear more than once in a single namelist group." SUBMITTED BY: Japan HISTORY: 99-208 Submitted 99-221 Classed as Fortran 95 Interpretation. WG5-N1411 Draft answer 00-260 m154 Passed by J3 meeting 00-329 m155 Failed J3 letter ballot