Scope of array initialization do loops

From: Rich Townsend (rhdt_at_barVOIDtol.udel.edu)
Date: 09/21/04


Date: Tue, 21 Sep 2004 12:40:45 -0400

Hi all --

Having left my copy of M&R at home today, can someone remind me of the
scoping rules applied to i in this code:

dimension a(10)

a = (/(i/2.,i=1,10)/)

Does the implied do loop have its own scope? If so, how do I assign a
type to i without creating a variable of the same name in the enclosing
scope?

cheers,

Rich

-- 
Dr Richard H D Townsend
Bartol Research Institute
University of Delaware
[ Delete VOID for valid email address ]