forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pointers (1)

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
MarzAttax



Joined: 15 Jun 2006
Posts: 46

PostPosted: Thu Jul 20, 2006 5:03 am    Post subject: Pointers (1) Reply with quote

First things first.
As people have a habit of helpfully pointing out that code I post one here doesnt work and that they are surprised that it ever has done,

" THE CODE IS NOT MEANT TO WORK, IT IS ILLUSTRATIVE ONLY"

Ok, now that is out of the way............

Please look over the following "code":

========================================

Module A

Type stFerret
Integer*4, Pointer :: iTeeth(Smile
End Type

Type(stFerret) pstFerret

Call NewInt4Array(pstFerret%iTeeth)

End Module

========================================

Module New

Subroutine NewInt4Array(Integer4Array)

Integer*4, Pointer :: Integer4Array(Smile

NULLIFY(Integer4Array)

End Module New

========================================

My question is (as I am obviously not clever enough to understand technical ForTran documentation) Surprised)

Does the pointer passed to the routine get NULLIFIED?

or

As I intend, does pstFerret%iTeeth get NULLIFIED?

Appreciate any help on this thanx.

Bri
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7928
Location: Salford, UK

PostPosted: Wed Aug 02, 2006 9:53 am    Post subject: Pointers (1) Reply with quote

Brian

As you say this is not working code.
If it were it would be a simple matter to run the code and see what happens.
The only problem that might occur is if FTN95 does not behave as it should and this has been known to happen!
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group