newbie question 4-9
- From: beep <me@xxxxxxxx>
- Date: Mon, 10 Apr 2006 04:51:08 GMT
Hello,
I'm just getting started with Prolog. I'm using the Clocksin & Mellish
book and SWI-Prolog v.5.6.9 as my environment.
I am trying out the examples, but I'm encountering some problems when
using if ":-".
When I try using :-, I keep getting the following error -
ERROR: Undefined procedure: (:-)/2
From the book I'm using the following:
likes(mary, books).
likes(mary, wine).
likes(john, france).
Wne I try the below in SWI, I get the error
?- likes(john, X) :- likes(X, wine).
ERROR: Undefined procedure: (:-)/2
?-
.
- Follow-Ups:
- Re: newbie question 4-9
- From: Geoffrey Summerhayes
- Re: newbie question 4-9
- Prev by Date: newbie question
- Next by Date: Re: newbie question 4-9
- Previous by thread: newbie question
- Next by thread: Re: newbie question 4-9
- Index(es):
Relevant Pages
|
|