MAINSAIL Language Manual, Section 32.33

previous   next   top   contents   index   framed top   this page unframed


32.33. closeLibrary

Figure 32–33. closeLibrary
PROCEDURE   closeLibrary
                        (
STRING fileName);

closeLibrary closes the library file (see Chapter 14) with the name fileName, thereby eliminating it from taking part in MODULE searches (unless opened again).

MODULEs already obtained from the library are not affected by the library's being closed. Thus, it is possible to open a library, obtain a MODULE from the library, close the library, and then continue to use the MODULE. The runtime system preserves a copy of the MODULE until it is disposed.

Example 32–34 calls a PROCEDURE p in a MODULE m, assuming that the file myLib is an objmod library that contains m.

Example 32–34. Use of closeLibrary
MODULE m (PROCEDURE p);
...
openLibrary("myLib");
bind(m);
closeLibrary("myLib");
p;


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 32.33