swipl: how to reload file

Rahn picture Rahn · Nov 30, 2016 · Viewed 8.9k times · Source

First I load the file with SWI-Prolog

$ swipl file.pl

then I modify the file and save.

Now how do I reload the file like

?- reload

for this modified file.pl?

Answer

Isabelle Newbie picture Isabelle Newbie · Nov 30, 2016

SWI-Prolog has a predicate make/0 for this purpose:

?- make.

Note that SWI-Prolog has a handy feature for searching the manual for keywords:

?- apropos(reload).

Points you (among other things) to Section 3.3 of the manual: "The test-edit-reload cycle", which mentions this.