![]() |
YAP 7.1.0
|
class dynamic/1 |
dynamic( + P )
Declares predicate P or list of predicates [ P1,..., Pn] as a dynamic predicate P must be written as a predicate indicator, that is in form Name/Arity or Module:Name/Arity
a more convenient form can be used:
or, equivalently,
Note:
a predicate is assumed to be dynamic when asserted before being defined
class multifile/1 |
multifile( P )
defined in the ISO standard
Declares that a predicate or several predicates may be defined throughout several files P is a collection of one or more predicate indicators:
Instructs the compiler about the declaration of a predicate P in more than one file It must appear in the first of the loaded files where the predicate is declared, and before declaration of any of its clauses
Multifile declarations must be supported by reconsult/1 and compile/1 : when a multifile predicate is reconsulted, only the clauses from the same file are removed
Since YAP4.3.0 multifile procedures can be static or dynamic