Open mb64 opened 4 years ago
I'm not sure what (if anything) the ISO standard dictates, but in GNU Prolog and partially in SWI Prolog, one can consult multiple files as [a, b]. instead of [a]. [b]. in the REPL.
[a, b].
[a].
[b].
In Scryer, it seems to be interpreted as a list of goals:
$ scryer-prolog ?- [write('Hello, world!'), nl]. Hello, world! true. ?-
'.'/2 is not ISO. The precise meaning of it varies a lot between systems.
'.'/2
The cleanest way instead is to use the module system. And file inclusion and ensure loaded directives.
I'm not sure what (if anything) the ISO standard dictates, but in GNU Prolog and partially in SWI Prolog, one can consult multiple files as
[a, b].
instead of[a].
[b].
in the REPL.In Scryer, it seems to be interpreted as a list of goals: