pTAL Reference Manual (H06.08+)
Hardware Indicators
HP pTAL Reference Manual—523746-006
13-2
[NO]OVERFLOW_TRAPS Procedure Attribute
The directives and attributes active when a pTAL statement is compiled determine the
overflow trapping state of the code that the compiler generates for that statement. A
procedure does not inherit the trapping state of its caller.
[NO]OVERFLOW_TRAPS Procedure Attribute
The OVERFLOW_TRAPS and NOOVERFLOW_TRAPS procedure attributes specify
the default overflow trapping behavior for a procedure or subprocedure (see Procedure
Attributes on page 14-5).
The OVERFLOW_TRAPS and NOOVERFLOW_TRAPS procedure attributes override
the current setting of the directive OVERFLOW_TRAPS on page 17-49.
[EN|DIS]ABLE_OVERFLOW_TRAPS Block Attribute
The ENABLE_OVERFLOW_TRAPS and DISABLE_OVERFLOW_TRAPS block
attributes establish the trapping state of a block, regardless of the trapping state of the
procedure’s or subprocedure’s caller or of the code surrounding the block.
Example 13-1. OVERFLOW_TRAPS Compiler Directive and Procedure Attribute
?OVERFLOW_TRAPS ! Enable traps
PROC x NOOVERFLOW_TRAPS; ! Disable traps for x
BEGIN
...
END;
PROC y; ! Traps for y are still enabled
BEGIN
...
END;
PROC z NOOVERFLOW_TRAPS; ! Disable traps for z
BEGIN
SUBPROC s OVERFLOW_TRAPS; ! Enable traps for s
BEGIN
...
END;
...
s;
... ! Traps for z are still disabled
END; ! upon return from s
BEGIN
: ENABLE_OVERFLOW_TRAPS
DISABLE_OVERFLOW_TRAPS
VST682.vsd










