Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. BINARY-DATA> (defmacro define-binary-class (name slots)
  2. `(defclass ,name ()
  3. ,(mapcar #'slot->defclass-slot slots)))
  4. WARNING: redefining COM.GIGAMONKEYS.BINARY-DATA:DEFINE-BINARY-CLASS in DEFMACRO
  5. DEFINE-BINARY-CLASS
  6. BINARY-DATA> (macroexpand-1 '(define-binary-class id3-tag
  7. ((identifier (iso-8859-1-string :length 3))
  8. (major-version u1)
  9. (revision u1)
  10. (flags u1)
  11. (size id3-tag-size)
  12. (frames (id3-frames :tag-size size)))))
  13. (DEFCLASS ID3-TAG NIL
  14. ((IDENTIFIER :INITARG :IDENTIFIER :ACCESSOR IDENTIFIER)
  15. (MAJOR-VERSION :INITARG :MAJOR-VERSION :ACCESSOR MAJOR-VERSION)
  16. (REVISION :INITARG :REVISION :ACCESSOR REVISION)
  17. (FLAGS :INITARG :FLAGS :ACCESSOR FLAGS)
  18. (SIZE :INITARG :SIZE :ACCESSOR SIZE)
  19. (FRAMES :INITARG :FRAMES :ACCESSOR FRAMES)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement