Pointers and references: Difference between revisions

m
→‎{{header|Fortran}}: Fixed typo (existance → existence)
m (→‎{{header|Fortran}}: Fixed typo (existance → existence))
Line 529:
pointertoreal => areal</lang>
 
The target attribute is needed to say that the ''object'' (the "real" datum) can be referenced through a pointer (it seems it works more like an alias rather than a "true" pointer). The existanceexistence of an ''association'' can be tested with <tt>associated</tt> (Fortran 95):
 
<lang fortran>if ( associated(pointertoreal) ) !...</lang>
Anonymous user