home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!caen!sol.ctr.columbia.edu!news.cs.columbia.edu!cs.columbia.edu!moniot
- From: moniot@dsm.dsm.fordham.edu (Robert Moniot)
- Subject: Re: Help With Named common blocks...again
- In-Reply-To: jumper@garfield.catt.ncsu.edu's message of Wed, 16 Dec 1992 03:19:54 GMT
- Message-ID: <MONIOT.92Dec16120247@dsm.dsm.fordham.edu>
- Sender: news@cs.columbia.edu (The Daily News)
- Organization: Fordham University/CLC, Division of Science and Math
- References: <jumper.724475994@garfield.catt.ncsu.edu>
- Distribution: comp
- Date: Wed, 16 Dec 1992 17:02:47 GMT
- Lines: 43
-
- In article <jumper.724475994@garfield.catt.ncsu.edu>
- jumper@garfield.catt.ncsu.edu (Michael Lanham) writes:
-
-
- > Let me start over. I have a program that has several source files. The data
- > module consists entirely of a BLOCK DATA segment.
-
- > In that data module there is a COMMON block that looks like the following.
-
- [stuff omitted]
-
-
- > Now I find in a file separate from the data file (the first one to declare what
- > SHARE1 is like) a use of SHARE1 entirely different.
-
- Someone may already have said this in a reply, but if so I missed it:
-
- The example given is not standard conforming because the block
- declarations are of different lengths. Section 8.3.3 says "Within an
- executable program, all named common blocks that have the same name
- must be the same size."
-
- This rule does not apply to blank common, which is probably why many
- people don't remember that it does apply to named common.
-
- Also, some of the variables in the common blocks had names like
- CHAR(n). If there were accompanying declarations (not shown)
- declaring these variables to be of type CHARACTER, then the example is
- also not standard conforming due to mixing character and numeric types
- in the same block. See Section 8.3.1.
-
-
-
- --
-
-
- Bob Moniot
- Fordham University
- College at Lincoln Center
- New York, NY 10023 (212) 636-6331
-
- BitNet: MONIOT@FORDMULC
- InterNet: moniot@mary.fordham.edu
-