If we can
load_files('f.pl', [module(modname)])
.
, and the files contents are added to module modname, what happens when we
unload_file('f.pl')
,
how can it know what the right module is?
Did you know ... | Search Documentation: |
Predicate unload_file/1 |
This predicate should be used with care. The multithreaded nature of SWI-Prolog makes removing static code unsafe. Attempts to do this should be reserved for development or situations where the application can guarantee that none of the clauses associated to File are active.
If we can
load_files('f.pl', [module(modname)])
.
, and the files contents are added to module modname, what happens when we
unload_file('f.pl')
,
how can it know what the right module is?