[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: COMMON block question
- Subject: Re: COMMON block question
- From: "Pavel A. Romashkin" <pavel.romashkin(at)noaa.gov>
- Date: Tue, 30 Jan 2001 13:57:17 -0700
- Newsgroups: comp.lang.idl-pvwave
- Organization: NOAA-CMDL-CIRES
- References: <3A76E38A.2023D430@ncep.noaa.gov>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:23320
As far as I know (from trying), a program module that has access to a
common block just takes whatever item happens to be at that location and
tries to use it. It is not aware of the type or size of that variable.
All that matters is that the user knows what each program is supposed to
get from the common block and makes sure programs access variables in
common blocks in the right order. In other words, something like the
following does not work well:
pro one
common temp, a, b
a = 'this is a string'
b = 2.5
end
pro two
common temp, b
print, b*5
end
Cheers,
Pavel