
edinburgh.pl -- Some traditional Edinburgh predicates
This module defines predicates from `traditional Edinburgh Prolog'
(Dec10 and C-Prolog) whose functionality has been replaced by (ISO)
Standard Prolog.
display(+Term) is det
display(+Stream, +Term) is det- Write a term, ignoring operators and special syntax constructs such
as brace terms (
{a}
) and lists ([a,b,c]
). Currently does print
dicts using the dict notation.
- See also
- - write_canonical/2. SWI-Prolog's write_canonical/2, however,
prints lists using list notation to reduce incompatibility due to
the modified list functor (
'[|]'
rather than `.`) and reduce
memory usage while parsing lists.
unknown(-Old, +New) is det- Edinburgh Prolog predicate for dealing dealing with undefined
procedures
reconsult(+FileOrList) is det- Load source
file(s)
, wiping the old content first. SWI-Prolog's
consult/1 and related predicates always do this.
- deprecated
- - The Edinburgh Prolog consult/reconsult distinction
is no longer used throughout most of the Prolog world.
debug is det
nodebug is det- Switch on/off debug mode. Note that nodebug/0 has been defined
such that is is not traced itself.
fileerrors(-Old, +New) is det- Query and change the fileerrors flag. Default it is set to
true
, causing file operations to raise an exception. Setting
it to false
activates the old Edinburgh mode of silent
failure.
- deprecated
- - New code should use catch/3 to handle file errors
silently