Advertisement
Guest User

Untitled

a guest
Oct 4th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; Put this code in a file, then compile and load it.
  2. ;; Afterward, evaluate (call-frob) and see an error
  3. ;; in CLISP.
  4.  
  5. (defmacro test (&aux (frob (gensym (string '#:frob))))
  6.   `(progn
  7.      (defun ,frob () 42)
  8.      (defun call-frob ()
  9.        (,frob))))
  10.  
  11. (test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement