Possible error in S series

27 views
Skip to first unread message

Angel Vanegas

unread,
Oct 22, 2022, 8:47:15 AM10/22/22
to Shen
Hello all. I'm going through TBoS and in the Shen Prolog chapter, one of the examples doesn't run for me.

(defprolog woman
  martha <--;
  joan <--;)

(prolog? (findall X [woman X] Y) (return Y))
FUNCALL: (woman #(shen.pvar 2)) is not a function name; try using a symbol instead


I'm using the Clisp Shen binary from the downloads page.

Angel Vanegas

unread,
Oct 22, 2022, 9:24:54 AM10/22/22
to Shen
Nevermind! I have a hardcopy of the third edition of the book and just looked this up in the 4th edition and see that the syntax has changed. 

[woman X] becomes (woman X)

Reply all
Reply to author
Forward
0 new messages