Inspect Manual

Using Inspect With Pascal
Inspect Manual429164-006
12-13
Subrange Types
flag := (red,white,blue);
...
This example displays the set variable flag:
-PASOBJ-DISPLAY flag
FLAG = (RED, WHITE, BLUE)
This example shows the internal attributes of the objects from the previous
declarations:
-PASOBJ-INFO IDENTIFIER flag
FLAG: VARIABLE
storage^info:
TYPE=DEFINED TYPE, ELEMENT LEN=256 BITS, UNIT SIZE=1 ELEMENTS
access^info:
#GLOBAL+1 WORDS
structure^info:
CHILD= COLORS
-PASOBJ-INFO IDENTIFIER colors
COLORS: DEFINED TYPE
access^info:
TYPE= SET, COMPONENT= COLORSET
-PASOBJ-INFO IDENTIFIER colorset
COLORSET: DEFINED TYPE
access^info:
TYPE= ENUMERATION
-PASOBJ-INFO IDENTIFIER blue
BLUE: NAMED CONST
storage^info:
TYPE=BIN SIGN, ELEMENT LEN=16 BITS, UNIT SIZE=1 ELEMENTS
access^info:
VALUE= 2
Subrange Types
Inspect allows a variable of subrange type as a data location parameter in any Inspect
command. Inspect allows integer, boolean, character, and enumeration (scalar)
subrange types.
Examples
This example assume these Pascal declarations:
TYPE
days = (mon,tue,wed,thu,fri,sat,sun);
weekday = mon..fri;
index = 0..75;
VAR workday : weekday;
array_index : index;