Previous: Overloading and Autoloading, Up: Function Files
It is sometime desirable to lock a function into memory with the
mlock
function. This is typically used for dynamically linked
functions in Oct-files or mex-files, that contain some initialization,
and it is desireable that a clear
does not remove this
initialization.
This might equally be used to prevent changes to a function from having
effect in Octave, though a similar effect can be had with the
ignore_function_time_stamp
function.
Lock the named function into memory. If no function is named then lock in the current function.
See also: munlock, mislocked, persistent.