Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defclass foo () ((bar :initarg := :initform '())))
- (defmethod make-instance :around ((type (eql 'foo)) &key =)
- (if (not =) nil (call-next-method)))
- (print (make-instance 'foo)) ;; => NIL
- (print (let ((x (make-instance 'foo))) x)) ;; => #<FOO {10037EEDF3}>
- (print (let ((x (apply #'make-instance (list 'foo)))) x)) ;; => NIL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement