For Programmers: Free Programming Magazines  


Home > Archive > Fortran > November 2005 > how can I know if two pointers are equal??









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how can I know if two pointers are equal??
Millena

2005-11-25, 7:00 pm

only a simple question...

how can I know if two pointers are equal?? .. if it doesn't accept some
thing like that :
if (previous == curr) then
head => curr
end if

and I don't want to verify the values in what it is associated as
previous%ii0

Type node
integer::ii0,ii1,ii2,ii3,ii4
type(node),pointer::next
End type node

Type(node),pointer::head,new_head,curr,p
revious

thanks
millena

Jugoslav Dujic

2005-11-25, 7:00 pm

Millena wrote:
| only a simple question...
|
| how can I know if two pointers are equal?? .. if it doesn't accept some
| thing like that :
| if (previous == curr) then

if (associated(previous,curr)) then

--
Jugoslav
___________
www.xeffort.com

Please reply to the newsgroup.
You can find my real e-mail on my home page above.
robin

2005-11-25, 7:00 pm

Millena wrote in message <1132929623.314349.201440@g47g2000cwa.googlegroups.com>...
>only a simple question...
>
>how can I know if two pointers are equal?? ..


'associated' springs to mind.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com