Switching modes in Prolog on the Windows command line
In many Prolog systems, such as SICStus 4, you can enter a fact
to complete the consultation. This fact will not be considered, it only serves to indicate the end.
(Warning: I am not a frequent user of Winds. That is, I only have rdesktop for this activity.)
If you ever need to define a fact
in your program, write
end_of_file :- true.
If you enter
as a query at the top level, many Prolog systems stop. You can work around this by typing
This slightly bizarre behavior is by no means standardized.
source to share