Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defstruct s-fixnum :type s-fixnum
- (n 0 :type fixnum)
- (doc "" :type string))
- (defclass foo ()
- ((a :accessor a :type 'fixnum :initarg :a)))
- (defclass bar (foo)
- ((a :type 's-fixnum :initarg :a)))
- (defmethod a ((i bar))
- (s-fixnum-n (slot-value i 'a)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement