Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Oct 4th, 2013  |  syntax: Lisp  |  size: 0.26 KB  |  hits: 3  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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)