defining an arbitrary type in your newer Fortrans



Hmmm, Getting Back to using Fortran after a few decades of absence, I
assume there's been some enhancements sine CDC FTN 4.1, so i read the
fine new manuals, and hmmm, ncei to have variable dimensions and
allocatables, and array ops, BUT I don't see one obvious fribble.

In your basic newer languages I've been using in the interim, you can
define types, like in Pascal "type" or C's "typedef". yes, I know, in
C it's not really a new type but more like a macro.

But.... I don't see this in Fortran !! And I see a lot of examples
where declarations are clumsily repeated over and over each time,
identical in each case:
REAL * 8, DIMENSION (100, : ) :: TwoDimmer

so it seems you can't define a nice type name in Fortran. Sounds like
an unusual omission.

Is there some good reason for this, or are two pages stuck together in
my PDF file?

P.S. I dont consider "derived types" a good substitute.

Any hints appreciated.

.



Relevant Pages