F and nullify() vs. null()
From: Bart Vandewoestyne (MyFirstName.MyLastName_at_telenet.be)
Date: 03/23/05
- Next message: Richard E Maine: "Re: xlf Fortran Oddity"
- Previous message: Paul Van Delst: "Re: xlf Fortran Oddity"
- Next in thread: Richard E Maine: "Re: F and nullify() vs. null()"
- Reply: Richard E Maine: "Re: F and nullify() vs. null()"
- Reply: Michael Metcalf: "Re: F and nullify() vs. null()"
- Reply: Walt Brainerd: "Re: F and nullify() vs. null()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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."
- Next message: Richard E Maine: "Re: xlf Fortran Oddity"
- Previous message: Paul Van Delst: "Re: xlf Fortran Oddity"
- Next in thread: Richard E Maine: "Re: F and nullify() vs. null()"
- Reply: Richard E Maine: "Re: F and nullify() vs. null()"
- Reply: Michael Metcalf: "Re: F and nullify() vs. null()"
- Reply: Walt Brainerd: "Re: F and nullify() vs. null()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|