Add LABELP predicate
This commit is contained in:
parent
379d33d5a1
commit
4a4a7b8485
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@
|
|||
((%name :accessor name :initarg :name)
|
||||
(%address :accessor address :initform nil :initarg :address)))
|
||||
|
||||
(defun labelp (obj)
|
||||
(typep obj 'label))
|
||||
|
||||
(defmethod print-object ((object label) stream)
|
||||
(with-accessors ((name name) (address address)) object
|
||||
(print-unreadable-object (object stream :type t)
|
||||
|
|
Loading…
Add table
Reference in a new issue