I’m using: SWI-Prolog version: 8.1.24.
I want the code to import
some_predicate without running it’s initialization predicate.
hello world 2! and there seems no way to ignore the initialization of script2. Is it possible to ignore the main predicate of the other file? Of course, there are workarounds, but it would be nice to be able to import predicates from a script that has a main predicate.
https://github.com/rrooij/swi_initialization_bug for the code to reproduce