Advertisement
Guest User

Untitled

a guest
Apr 15th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. cl-user> (make-package 'a :use '())
  2. #<Package "A">
  3. cl-user> (import 'a::hello)
  4. t
  5. cl-user> (handler-bind ((error (lambda (condition) (let ((*package* (find-package :cl))) (terpri) (princ condition) (terpri)) (invoke-restart 'ignore))))
  6. (restart-case hello (ignore (&rest args) (print args) nil))
  7. (restart-case (hello) (ignore (&rest args) (print args) nil)))
  8.  
  9. ;Compiler warnings :
  10. ; In an anonymous lambda form: Undeclared free variable hello
  11. ; In an anonymous lambda form: Undefined function hello
  12.  
  13. Unbound variable: a::hello
  14.  
  15. nil
  16. Undefined function a::hello called with arguments () .
  17.  
  18. nil
  19. nil
  20. cl-user>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement