Library /sys$common/syshlp/dbg$help.hlb
DEBUG, Language Support, SCAN, Examining and Depositing, POINTER Variables

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    You can examine a POINTER by name to find the address of the
    variable it points to. Use the operator that combines the minus
    sign and the greater than symbol to examine the variable that is
    based on the POINTER.

    Consider these declarations and assignments:

    TYPE symnode: RECORD
                     ptr:  POINTER TO symnode,
                     vstr: VARYING STRING( 20 ),
                  END RECORD;

    DECLARE x   : symnode;
    DECLARE xptr: POINTER TO symnode;
    xptr        = POINTER(x);
    x.vstr      = 'prehensile';

    The following command displays the value of the vstr component of
    x:

    DBG> EXAMINE x.vstr
    POINTER\MAINPOINTER\X.VSTR: 'prehensile'

    The following command displays the value of vstr based on the
    POINTER:

    DBG> EXAMINE xptr->.vstr
    POINTER\MAINPOINTER\XPTR->.VSTR: 'prehensile '
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.