CLEAROPL

Purpose:

Deletes all .OPL files located on the SPLPATH.

Syntax:

CLEAROPL(remove, verbose)

remove

-

Optional. An integer, the remove loaded functions from memory flag:

0:

do not clear functions from memory

1:

clear SPL functions from memory (default)

verbose

-

Optional. An integer, the display message flag:

0:

do not display a message (default)

1:

display a message

Example:

clearopl

 

deletes all .OPL files normally found on SPLPATH and the SPL functions are removed from memory.

Example:

clearopl(0)

 

same as above accept loaded SPL functions are preserved in memory.

Remarks:

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.

See Also:

CLEAR

DELALLFUNCTIONS

GETSPLPATH

RESETMACROS

SPLCOMPILE

SPLLOAD