Skip to content

Commit

Permalink
Potential fix for #11, problem with predicate symbol name constructio…
Browse files Browse the repository at this point in the history
…n in non-standard readtable case scenarios.
  • Loading branch information
Shinmera committed Mar 17, 2016
1 parent 4985986 commit 045f991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dom.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Note that the element is automatically appended to the parent's child list."
(defmacro define-predicates (&rest classes)
`(progn
,@(loop for class in classes
for predicate = (intern (format NIL "~a-P" class))
for predicate = (intern (format NIL "~a-~a" (string class) (string 'p)))
for docstring = (format NIL "Returns T if the given OBJECT is of type ~a" class)
collect `(defun ,predicate (object)
,docstring
Expand Down

0 comments on commit 045f991

Please sign in to comment.