Examples of LIBRARY Declarations

The following example declares a reference to the library LIB that is to be referenced by the title OBJECT/LIBRARY:

LIBRARY LIB(TITLE="OBJECT/LIBRARY.");

The following example declares a reference to the library L, from which the procedure reference array REFID is to be imported. The procedure reference array is exported from the library as PROCREF.

LIBRARY L [ PROCEDURE REFERENCE ARRAY REFID [0] (I);
                VALUE I; INTEGER I;
                EXTERNAL (ACTUALNAME="PROCREF")];

The following example declares a reference to the library LIB, from which the procedure reference arrays PA1 and PA2 are imported:

LIBRARY LIB [ REAL PROCEDURE REFERENCE ARRAY PA1[0:10];
                   NULL;
               PROCEDURE REFERENCE ARRAY PA2[O:3,0:10](R,B);
                   REAL R;
                   BOOLEAN B;
                   NULL ];