Consulting

Another way to run a program is to load it directly into the program area without compilation. This is called consulting. It is possible to trace the execution of consulted programs, but it is not possible to trace the execution of compiled programs. In order to consult a program in a file into the program area, type
      consult(fileName)
or simply
      [fileName].
As an extension, both consult/1 and []/1 accept a list of file names.

In order to see the consulted or dynamically asserted clauses in the program area, use

      listing
and in order to see the clauses that define a predicate Atom/Arity, use
      listing(Atom/Arity)



Neng-Fa Zhou 2013-01-25