Scope of array initialization do loops
From: Rich Townsend (rhdt_at_barVOIDtol.udel.edu)
Date: 09/21/04
- Next message: James Giles: "Re: F2k3 Environment Variable Support"
- Previous message: Richard E Maine: "Re: SGI introduced a bug in 7.41 compiler?"
- Next in thread: *** Hendrickson: "Re: Scope of array initialization do loops"
- Reply: *** Hendrickson: "Re: Scope of array initialization do loops"
- Reply: James Giles: "Re: Scope of array initialization do loops"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ]
- Next message: James Giles: "Re: F2k3 Environment Variable Support"
- Previous message: Richard E Maine: "Re: SGI introduced a bug in 7.41 compiler?"
- Next in thread: *** Hendrickson: "Re: Scope of array initialization do loops"
- Reply: *** Hendrickson: "Re: Scope of array initialization do loops"
- Reply: James Giles: "Re: Scope of array initialization do loops"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]