Re: dynamic clause

Dennis Decker Jensen <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
michel levy writes:
> I get an error message when I tried to compile a program with a call to
> an undefined reference to `predicate(tracable/1).
> But for me, it was not an error but a call to an dynamic predicate.
> Is it possible to use dynamic predicate in a program that I want to 
> compile ?

Yes, if you declare dynamic predicates (beforehand) with something
like this:

:- dymanmic(dyn_predicate/3).

I cannot remember the syntax correctly, so please check the
documentation yourself.

--
Dennis Decker Jensen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.