defining an arbitrary type in your newer Fortrans
- From: "Ancient_Hacker" <grg2@xxxxxxxxxxx>
- Date: 28 Nov 2006 09:11:13 -0800
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.
.
- Follow-Ups:
- Re: defining an arbitrary type in your newer Fortrans
- From: Walter Spector
- Re: defining an arbitrary type in your newer Fortrans
- From: PJH
- Re: defining an arbitrary type in your newer Fortrans
- From: Jan Vorbrüggen
- Re: defining an arbitrary type in your newer Fortrans
- Prev by Date: Re: elemental function versus loop over function
- Next by Date: Re: defining an arbitrary type in your newer Fortrans
- Previous by thread: elemental function versus loop over function
- Next by thread: Re: defining an arbitrary type in your newer Fortrans
- Index(es):
Relevant Pages
|