Re: newbie question 4-9




beep wrote:

Wne I try the below in SWI, I get the error

?- likes(john, X) :- likes(X, wine).

ERROR: Undefined procedure: (:-)/2
?-

Wrong mode, see the following (WinXP session):

For help, use ?- help(Topic). or ?- apropos(Word).

1 ?- [user].
|: likes(mary,books).
|: likes(mary,wine).
|: likes(john,france).
|: likes(john,X):-likes(X,wine).
|: <CTRL-D>
% user://1 compiled 0.08 sec, 660 bytes

Yes
2 ?- likes(X,Y).

X = mary
Y = books ;

X = mary
Y = wine ;

X = john
Y = france ;

X = john
Y = mary ;

No
3 ?-

--
Geoff

.



Relevant Pages

  • Re: water into wine - what is it a sign of?
    ... been used for wine and the taste of the wine still lingered, ... Many people believe there was a Johannine "school" of Christians, disciples of John These people would have heard the teacher and discussed with him; and it may have been them who finally collected and edited his teachings into the Gospel. ... John 6:51 "I am the living bread that came down from heaven. ...
    (uk.religion.christian)
  • Re: JP going into the hospital
    ... John, being in the medical field I understand how that happened. ... > apparently, has caused the neuropathy that is robbing me of my legs, so ... > neuropathy and that two bottles of wine a day is way too much, ... > I told them that the wine is the only thing that dulls the pain enough ...
    (rec.music.makers.guitar.acoustic)
  • Re: Non-Windows version of IBM Softcopy Librarian?
    ... John, ... Have you tried it under WINE? ... >of) Windows under Linux as an application? ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: JP going into the hospital
    ... Good for you, John! ... > apparently, has caused the neuropathy that is robbing me of my legs, so ... > neuropathy and that two bottles of wine a day is way too much, ... > I told them that the wine is the only thing that dulls the pain enough ...
    (rec.music.makers.guitar.acoustic)
  • Re: Non-Windows version of IBM Softcopy Librarian?
    ... > Have you tried it under WINE? ... John McKown ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)