Re: Allocating arrays inside a subroutine.



Rich Townsend <rhdt@xxxxxxxxxxxxxxxxxxx> wrote:

Richard E Maine wrote:

note that you *CAN* initialize
a pointer to null() in f90. The statement

integer, pointer :: p => null()

is perfectly fine f90.

Are you sure about this? Reading M&R (sec. 11.2.8), they say that NULL is
a new intrinsic, introduced in F95.

Um.... Oops. You know, I even grabbed a copy of the standard to check
before posting. The real, official poorly bound paper standard from ISO
that would have cost me about $200 to buy, but I got as a feebee for
being editor (Woo!).

But, of course, that was f95. :-( I did have a cup of coffee this
morning, but I guess I need a second one. Better that than going back to
the "rest home". You are correct, as was Jan on this one.

--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.



Relevant Pages

  • Re: finding available kind values, precisions and exponent ranges
    ... my files an extension that indicates in what Fortran standard ... If my intention was to write a Fortran 95 ... conforming source file, then i add .f95. ... to write Fortran 90, then I use .f90. ...
    (comp.lang.fortran)
  • Re: Possible F77 Code Improvement ??
    ... I never used or intend to use F95, and rarely used F90. ... I believe the title of that book is, "Fortran 90 Programming", ... the F90/F95 features. ...
    (comp.lang.fortran)
  • Re: upgrading
    ... standard, It has been rewritten in parts to f90 standard. ... Most compilers that are actively developed and supported are Fortran ... so a lack of compilers is not reason to avoid F95. ...
    (comp.lang.fortran)
  • Re: public comment on fortran 2008
    ... biggest part of f95 was just incorporation of the many f90 interp ... shortcommings observed in f90. ... The ELEMENTAL feature is hard for vendors to get right to this day, ... Fortunately constant expressions were eliminated in a Corrigendum ...
    (comp.lang.fortran)
  • Re: matlab to fortran
    ... the differences between f90 and f95 being pretty minor. ... but there are one or two exceptions. ... compilers might happen to implement i0 anyway. ...
    (comp.lang.fortran)