Functions returning pointers

Paul Brook paul@codesourcery.com
Sun Aug 22 20:24:00 GMT 2004


On Sunday 22 August 2004 21:18, Tobias Schlüter wrote:
> Am I right in assuming that this program should print "2 2"?
>    integer, pointer :: p
>    integer, target :: t
>    t = 1
>    p = f()

Presumably should be "p => f()"
Works file with that change :)

Paul



More information about the Fortran mailing list