I’m using: SWI-Prolog version 8.1.9.
I have about 7 source files in my project. Throughout the project, there are conditional compilation blocks that all check a single predicate that is declared in one of source files. This predicate controls whether or not the
portray statements I have created across the source files are compiled or not. So the predicate allows me to easily turn off all the
portray statements when required for debugging.
I have noticed that when I change that predicate, then reconsult the source file that contains it, and then do a make, the other source files are not rebuilt. I know this because the
portray statements in the other source files still behave as if that predicate that controls the compilation of the
portray code is still in the old state.
When this happens, I exit SWI-Prolog completely and reload. Then everything is fine.
Is there a command I can use to tell SWI-Prolog to reload all the files in that are currently loaded and then completely rebuild them?