I’m using: SWI-Prolog version 9.0.4 for x86_64-linux
I want the code to: Load and compile by invoking [program], ['program.pl] or consult(‘program.pl’).
But what I’m getting is:
?- edit(‘myfamily.pl’).
true.
?- consult(‘myfamily.pl’).
true.
?- consult(‘myfamily.pl’).
true.
?- [‘myfamily.pl’].
true.
?- [myfamily].
true.
I’ve checked I’m in the same directory as the file. No idea what I’m missing, but it must be obvious.
Edit: Nevermind, figured it out. It was loading, I just wasn’t getting a compile message.