Deletes all .OPL files located on the SPLPATH.
CLEAROPL(remove, verbose)
remove |
- |
Optional. An integer, the remove loaded functions from memory flag:
|
||||
verbose |
- |
Optional. An integer, the display message flag:
|
clearopl
deletes all .OPL files normally found on SPLPATH and the SPL functions are removed from memory.
clearopl(0)
same as above accept loaded SPL functions are preserved in memory.
CLEAROPL is useful for resetting the compiled state of SPL routines.
When a new SPL file is loaded, a corresponding file with extension .OPL is automatically generated. This file is a low level, pre-processed representation of the original SPL file to facilitate faster loading of the function during the next session.
When a function name is encountered, the following steps are performed to load the function:
1. |
Check if the function is already loaded into memory |
2. |
If not loaded, search for a file of the same name with extension .OPL |
3. |
Load if the .OPL is found and the file date is newer than the .SPL file |
4. |
If not loaded, search for a file of the same name with extension .SPL |
5. |
Compile and load the .SPL file |
CLEAROPL only removes files with extension .OPL. SPL files and any other files are not removed.