users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with not and unasserted facts


From: Vic Bancroft
Subject: Re: problems with not and unasserted facts
Date: Wed, 31 Aug 2005 07:13:18 -0400
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]