Comment explaining '-p', in line 178.
This commit is contained in:
Pushkar Sharma 2015-10-04 21:24:57 +05:30
parent 9b46fe7e57
commit fbd07f268c

View File

@ -175,7 +175,8 @@ nil ; for false - and the empty list
:age 5))
*rover* ; => #S(DOG :NAME "rover" :BREED "collie" :AGE 5)
(dog-p *rover*) ; => t ;; ewww)
(dog-p *rover*) ; => true #| -p signifies "predicate". It's used to
check if *rover* is an instance of dog.|#
(dog-name *rover*) ; => "rover"
;; Dog-p, make-dog, and dog-name are all created by defstruct!