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 (2)

 
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:16 am    Post subject: Pointers (2) Reply with quote

Similar to my previous post, this code is illustrative only.
Please review the following "code".

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

Module A

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

Type stZoo
Type(stFerret) pstFerret
End Type

Type(stZoo) pstZoo

End Module A

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

Module B

USE Module A

Type(stFerret), Pointer :: pstFerretL

pstFerretL => pstZoo%pstFerret%iTeeth
If(.NOT.ASSOCIATED(pstFerretL)) Then
Do Something
Endif

End Module B

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

My question is:
Does the code see if the pointer (pstFerretL) is ASSOCIATED?

or

As I intend, does the code see if pstZoo%pstFerret%iTeeth is ASSOCIATED?

Again, I appreciated any help on this.

Bri
Back to top
View user's profile Send private message
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