F and nullify() vs. null()

From: Bart Vandewoestyne (MyFirstName.MyLastName_at_telenet.be)
Date: 03/23/05


Date: Wed, 23 Mar 2005 15:35:01 +0000 (UTC)

I'm a bit confused... because in my book 'The F programming language',
section 6.5.4 it is explicitly stated that one can use the nullify()
statement to disassociate a pointer from its target.

Now take a look at this testprogram:

program test_nullify

   integer, pointer :: ptr

! This does not work for F
   nullify(ptr)

end program test_nullify

When trying to compile this with F, i get the error:

Error: test_nullify.f95, line 6: syntax error
       detected at <end-of-statement>@NULLIFY
[f95 fatal error termination]

If i change the nullify statement to

    ptr => null()

things seem to compile.

Now my questions are:

1) is nullify(ptr) exactly the same as ptr => null() ?

2) according to this thread:
http://groups.google.be/groups?hl=nl&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=d9ff8f2a1282c256&seekm=udhgh1oic4on10%40corp.supernews.com#s
the nullify statement has been removed from the current F-compiler. Why?

Thinking about F-compliance for g95, should g95 accept nullify() or not?

Regards,
Bart

PS: the version of F i'm talking about is
Fortran Company/NAG F compiler Release 20020224

-- 
	"Share what you know.  Learn what you don't."


Relevant Pages

  • Re: F and nullify() vs. null()
    ... > the nullify statement has been removed from the current F-compiler. ... G95 darned well better accept nullify because it is part of the f95 ... more explicit in that specifying -std=F is a bit more than just thinking ...
    (comp.lang.fortran)
  • Re: F and nullify() vs. null()
    ... Bart Vandewoestyne wrote: ... > section 6.5.4 it is explicitly stated that one can use the nullify() ... > statement to disassociate a pointer from its target. ... > things seem to compile. ...
    (comp.lang.fortran)