"have" function missing from source code in website

24 views
Skip to first unread message

Brisance

unread,
Nov 9, 2010, 2:38:54 AM11/9/10
to Land of Lisp
The following function is missing from the wizards_game.lisp source
file <http://www.landoflisp.com/wizards_game.lisp> in the website.

(defun have (object)
(member object (inventory)))

Faré

unread,
Nov 9, 2010, 9:43:08 AM11/9/10
to Land of Lisp
Better:

(defun have (object)
    (member object (cdr (inventory))))

Brisance

unread,
Nov 9, 2010, 9:24:37 PM11/9/10
to Land of Lisp
I was referring to the canonical version as presented in the book.

Conrad

unread,
Nov 14, 2010, 2:36:23 PM11/14/10
to Land of Lisp
Thanks Brisance- I'm updating the source code as we speak.

Thanks Faré- You are right on the "have" command- What you have
pointed out is a bug, though of course very harmless. I will note it
in the errata I'm compiling.
Reply all
Reply to author
Forward
0 new messages