Re: defining an arbitrary type in your newer Fortrans
- From: "PJH" <abc@xxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 18:51:40 -0000
Thanks for this Walter
I seem to remember either Microsoft PowerStation or DEC Fortran had a
(non-F90) user defined type that used the dot notation - I think it was
called a STRUCTURE or maybe a RECORD (my memory of the details is somewhat
hazy). Possibly it was the overloaded operator in F90 that caused problems?
FWIW, I find the dot notation significantly easier to "read" than %, which
doesn't really separate the different elements - for instance:
This%is%a%long%name
This.is.a.long.name
It is also one of those differences that always trips me up when switching
between Fortran to Delphi; almost as much as the dreaded Pascal :=
assignment and semi-colons at the end of lines.
Still, no point in complaining as it certainly isn't going to change just
for me.
Paul Holden
"Walter Spector" <w6ws_xthisoutx@xxxxxxxxxxxxx> wrote in message
news:456C7F58.39078418@xxxxxxxxxxxxxxxx
PJH wrote:every
...
Accessing elements/fields in a Fortran type instance is done using a %
character, rather than the dot that is used in Pascal and just about
standardsother language that I have used. I have never understood why the
mecommittee decided against the dot notation, maybe someone could educate
dots.on that issue - I'm sure they had a good reason other than just being
contrary.
Sure. Fortran, since day one, has had operators that are delimited with
This conflicts with the use of dot notation for derived types - especiallywhen
one considers the Fortran-90 operator overloading capabilities.supposed
I like to think that the percent sign tells me that I am referencing some
'percentage' of the object...
The array declaration statement you quote looks odd to me if it is
recommendedto be an example of "new" Fortran - the REAL*8 is legal but not
syntax...
READ*8 is non-standard.
W.
.
- Follow-Ups:
- Re: defining an arbitrary type in your newer Fortrans
- From: Walter Spector
- Re: defining an arbitrary type in your newer Fortrans
- References:
- defining an arbitrary type in your newer Fortrans
- From: Ancient_Hacker
- Re: defining an arbitrary type in your newer Fortrans
- From: PJH
- Re: defining an arbitrary type in your newer Fortrans
- From: Walter Spector
- defining an arbitrary type in your newer Fortrans
- Prev by Date: Re: defining an arbitrary type in your newer Fortrans
- Next by Date: Re: FORTRAN created dll cannot be found by VB
- Previous by thread: Re: defining an arbitrary type in your newer Fortrans
- Next by thread: Re: defining an arbitrary type in your newer Fortrans
- Index(es):