--
You received this message because you are subscribed to the Google Groups "SWI-Prolog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+...@googlegroups.com.
Visit this group at http://groups.google.com/group/swi-prolog.
For more options, visit https://groups.google.com/d/optout.
***Not sure if you got my previous email ... If you did, please ignore this one. ***Alan,I tried this in the command line: ?- leash(-all), trace, tell('trace_file.txt'), female(hope), told.I made several modifications to work with a database (family.pl):father_of(joe,paul). father_of(joe,mary). father_of(joe,hope). mother_of(jane,paul). mother_of(jane,mary). mother_of(jane,hope). male(paul). male(joe). male(ralph). male(X) :- father_of(X,Y). female(mary). female(jane). female(hope). son_of(X,Y) :- father_of(Y,X),male(X). son_of(X,Y) :- mother_of(Y,X),male(X). daughter_of(X,Y) :- father_of(Y,X),female(X). daughter_of(X,Y) :- mother_of(Y,X),female(X). sibling_of(X,Y) :- !,father_of(Z,X),father_of(Z,Y),X\=Y. sibling_of(X,Y) :- !,mother_of(Z,X),mother_of(Z,Y),X\=Y.After running this program, I got the trace_file.txt, but empty :( And not found 'none' such argument for leash().I am pretty new to prolog, please bear me if I am asking non-sense.Any comment?Thank you,Hailin
--
You received this message because you are subscribed to a topic in the Google Groups "SWI-Prolog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swi-prolog/YHwXESVIJAs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swi-prolog+...@googlegroups.com.