Re: problems with not and unasserted facts

Vic Bancroft <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Lindsey Spratt wrote:

> not/1 is not a built-in in gprolog. Instead, use \+ / 1. 

This seems to be the most common issue introduced by the ISO prolog 
definitions !

> You could define a not/1 predicate as:
>
> not(Goal) :-
>     \+ call(Goal).
>
Hey Lindsey, don't you have a compatibility library of predicates around 
somewhere ?

more,
l8r,
v
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.