All pastes #796157 Raw Edit

Miscellany

public text v1 · immutable
#796157 ·published 2007-11-24 20:34 UTC
rendered paste body
(defmacro make-test-lambda (arg)
  `(lambda () (hardcoded-func ,arg)))

;works: 
(defmacro make-test-lambda (arg)
  `(lambda () (hardcoded-func ,arg)))
; ->(lambda nil (hardcoded-func (quote nother-func)))

(defun my-test (arg)
  (make-test-lambda arg))
(my-test 'nother-func)

;doesn't work:
(make-test-lambda 'nother-func)
; -> (lambda nil (hardcoded-func arg))