Advertisement
Guest User

Untitled

a guest
Apr 7th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. * (compile-file #P"f.lisp")
  2. ;
  3.  
  4. ; Warning: Undefined type MACHINE-ERROR
  5. ;
  6.  
  7. ;
  8. ;
  9. ; File: /Users/ldbeth/f.lisp
  10.  
  11. ; In: DEFUN FOO => DEFINE-CONDITION MACHINE-ERROR
  12.  
  13. ; (DEFINE-CONDITION MACHINE-ERROR (ERROR)
  14. ; (#)
  15. ; (:REPORT #))
  16. ; --> PROGN DEFMETHOD PROGN PCL::LOAD-DEFMETHOD LIST* LIST* LAMBDA FUNCTION
  17. ; --> MACROLET PCL::FAST-LEXICAL-METHOD-FUNCTIONS
  18. ; --> PCL::BIND-FAST-LEXICAL-METHOD-MACROS MACROLET
  19. ; --> PCL::BIND-LEXICAL-METHOD-FUNCTIONS PCL::CALL-NEXT-METHOD-BIND LET FLET
  20. ; --> PCL::WITH-REBOUND-ORIGINAL-ARGUMENTS LET PCL::BIND-ARGS
  21. ; ==>
  22. ; (LET* (#)
  23. ; (DECLARE #)
  24. ; (DECLARE #)
  25. ; (BLOCK MACHINE-ERROR-MACHINE-NAME #))
  26. ; Warning: Undefined type MACHINE-ERROR
  27. ; ; ; [Last message occurs 2 times]
  28.  
  29.  
  30. ; Warning: This type is undefined:
  31. ; MACHINE-ERROR
  32. ;
  33.  
  34. ; Compilation unit finished.
  35. ; 4 warnings
  36.  
  37. ;; =====
  38. (defun foo () (define-condition machine-error (error)
  39. ((machine-name
  40. :reader machine-error-machine-name))
  41. (:report (lambda (condition stream)
  42. (format stream "There is a problem with ~A."
  43. (machine-error-machine-name condition))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement