Inspect Manual

Using Inspect With C++
Inspect Manual429164-006
9-9
Unions
Unions
To access a particular union member, you must explicitly qualify that member. This
qualification determines which field of the union Inspect accesses (which field type is
actually accessed). In a display item, if you do not explicitly define the union member,
Inspect displays the first member.
Inspect Enhancements and Restrictions for
C++
The following subsections discuss certain differences between programming with C++
and using Inspect to debug C++ programs.
Uppercase and Lowercase Letters
For C++ identifiers, Inspect distinguishes between uppercase and lowercase letters. In
a multi-language environment, however, Inspect requires that you represent the data in
the form that the particular language demands. For example, if C++ is the language of
the current scope, any reference to TAL must be in uppercase.
If a TAL identifier is entered in lowercase, Inspect will not upshift the identifier for
resolution; it remains undefined. For example, if you are inspecting a C++ function,
you can display the TAL variables VAR_A and VAR^B by entering:
--DISPLAY VAR_A, VAR^B
Defining Objects in Block Structure
When you define a block of objects by putting them after the left brace that introduces
a compound (block) statement, Inspect only resolves object references that are not
duplicates. If there are duplicates, they are ambiguous to Inspect; therefore, Inspect
displays the error message:
Overloaded Functions
Inspect will detect when an ordinary function or member function is overloaded, and
prompt you to resolve the ambiguity. For example:
** Inspect error 98 ** Qualification required to resolve ambiguous reference:
identifier