www.delorie.com/gnu/docs/gcc/g77_59.html   search  
 
Buy the book!


Using and Porting GNU Fortran

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.9.1 NAMELIST Statement

The NAMELIST statement, and related I/O constructs, are supported by the GNU Fortran language in essentially the same way as they are by f2c.

This follows Fortran 90 with the restriction that on NAMELIST input, subscripts must have the form
 
subscript [ : subscript [ : stride]]
i.e.
 
&xx x(1:3,8:10:2)=1,2,3,4,5,6/
is allowed, but not, say,
 
&xx x(:3,8::2)=1,2,3,4,5,6/

As an extension of the Fortran 90 form, $ and $END may be used in place of & and / in NAMELIST input, so that
 
$&xx x(1:3,8:10:2)=1,2,3,4,5,6 $end
could be used instead of the example above.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003