SPLRELOAD

Purpose:

Recompiles and reloads one or more loaded SPL functions.

Syntax:

SPLRELOAD("spl1", "spl2", ..., "splN")

"splN"

-

One or more strings. The names of the SPL functions to reload.

Command Syntax:

 

SPLRELOAD spl1

 

spl1    -   The name of the external SPL file without quotes. Command form.

Example:

W1: trapz(1..10)

splreload("trapz")

 

Recompiles the loaded trapz SPL function.

Example:

splreload trapz

 

Same as above but uses the command line form.

Example:

splreload("trapz", "cumsum")

 

Recompiles the trapz snd cumsum SPL functions.

Remarks:

SPLRELOAD recompiles and reloads one or more previously loaded SPL functions. This can be useful during the development of SPLs where a function undergoes a test and edit cycle.

 

Consider a custom SPL named myspl that resides in a folder D:\project\spl. If the file path is not on the SPL search path, the function is first loaded with:

 

splload("D:\project\spl\myspl")

 

Once loaded, if modifications are made, the function can be recompiled and reloaded without having to specify the source path with:

 

splreload("myspl")

 

or

 

splreload myspl

See Also:

CLEAR

CLEAROPL

FUNCTIONS

SPLCOMPILE

SPLCOMPILEALL

SPLLOAD

SPLLOADALL

SPLREAD

SPLWRITE