[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: discontiguous predicate
From: |
Luis Quintano |
Subject: |
Re: discontiguous predicate |
Date: |
04 May 2001 12:05:10 +0100 |
You should do
discontiguous(female/1)
See you,
~/Luis Quintano
On 04 May 2001 11:42:31 +0100, carlos calderon wrote:
> hi all,
>
> I've got a simple list of facts, i.e:
>
> female(joan).
> male(david).
> male(paul).
> female(rachel).
>
> Well, if i try to compile this, it gives me a warning: discontiguous
> predicate female/1.
> Ok, I can change the order of my predicate to make them "contiguous" but
> that's not a proper solution.
> I went to the gnu_prolog manual, pag-42 section 5.1.5 and based upon that I
> thought this might work:
> discontiguous(female).
> female(joan).
> male(david).
> male(paul).
> female(rachel).
>
> but it didn't. I got the same warning.
>
> Again, apologies if the question has been answered before but I am new to the
> list and on the steep end of prolog's learning curve.
>
> -Carlos