Re: defining an arbitrary type in your newer Fortrans
- From: Walter Spector <w6ws_xthisoutx@xxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 18:26:33 GMT
PJH wrote:
...
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 every
other language that I have used. I have never understood why the standards
committee decided against the dot notation, maybe someone could educate me
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 dots.
This conflicts with the use of dot notation for derived types - especially when
one considers the Fortran-90 operator overloading capabilities.
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 supposed
to be an example of "new" Fortran - the REAL*8 is legal but not recommended
syntax...
READ*8 is non-standard.
W.
.
- Follow-Ups:
- Re: defining an arbitrary type in your newer Fortrans
- From: PJH
- 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
- defining an arbitrary type in your newer Fortrans
- Prev by Date: Re: defining an arbitrary type in your newer Fortrans
- Next by Date: Re: defining an arbitrary type in your newer Fortrans
- 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):
Relevant Pages
|