Re: defining an arbitrary type in your newer Fortrans



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.
.



Relevant Pages

  • Re: Need multiple regression source/book
    ... >> I seem to be having a hard time finding the tried/tested algorithms ... > That problem for the computer program is mainly prevented ... I'll have to brush up on my Fortran! ... i x dot n e t c o m dot c o m ...
    (sci.stat.math)
  • Re: should i write keywords uppercase?
    ... I still am comfortable have all Fortran statements in upppercase ... I don't speak for Intel, ... Ken Fairfield ... kenneth dot h dot fairfield ...
    (comp.lang.fortran)
  • Re: gfortran bug?
    ... Try this with Compaq Fortran, then buy Steve Lionel a crate of beer. ... qomputing dot demon dot co dot uk ... > from the way that I declared it in my interface block. ... > and compile it with my GNU Fortran 95 compiler: ...
    (comp.lang.fortran)
  • Re: please let me know what this program prints
    ... Bob Corbett ... HP Fortran 77 V7.6-198-48D52 on OpenVMS Alpha V7.3-1 ... (This is an F95 compliant compiler so according to my ... kenneth dot h dot fairfield ...
    (comp.lang.fortran)
  • Re: Q: [visual fortran 6.0] problem with array name
    ... arrays as parameters does not work as expected ... Compiling Fortran... ... I don't speak for Intel, ... kenneth dot h dot fairfield ...
    (comp.lang.fortran)