TAL Programmer's Guide

Compiling With Cross-References
Compiling Programs
096254 Tandem Computers Incorporated 14–29
The following example makes changes to the current class list and turns the collection
or listing of cross-references on and off:
!Default LIST and NOSUPPRESS are in effect
?CROSSREF, CROSSREF UNREF, NOCROSSREF VARIABLES
!Collect (and list) cross-references
NAME test;
INT i;
?NOCROSSREF !Stop collecting cross-references
BLOCK PRIVATE;
INT j;
END BLOCK;
?CROSSREF, CROSSREF VARIABLES
!Resume collecting (and listing)
! cross-references
PROC p MAIN;
BEGIN
!Lots of code
END;
?SUPPRESS !Stop listing cross-references
PROC q;
BEGIN
!More code
END;
?NOSUPPRESS !Resume listing cross-references
!Lots more code
!LIST and NOSUPPRESS are in effect at the end of
! compilation.