reloads an already compiled module to the node
INCLUDE 'prolib.h' reload("demo")
string(ModuleName) (i) Name of Module to be reloaded
This adds the compiled module onto the current node. Unlike load()
this will reload an already present module. ModuleName is the name specified
by the MODULE keyword in the associated source. The system adds an '.lkd' ending
to it and starts a search for a appropriate file. The Module should be contained
either in the current directory, the library directory, or the binary directory.
If it cannot be found, the load fails.
If you call a predicate via call (), xcall () or exec (), you must ensure that the code is already present. An easy way to do so would be issuing the call with a precede load predicate. Please see the example below.
To load code on each node of the system, you may use the load_all () predicate.
NOTE: You do not need this predicate if you use a compiled call to an external predicate. This will be done by the system.
xcall(( load(demo), start_demo )). % load is needed load(demo), call(start_demo). % load is needed IMPORT demo :- start_demo. start_demo. % load is NOT needed!
No runtime errors.
prolog-process, client-server, object
load , load_all , consult , compile , load_compiler