[plt-scheme] Use of empty in macro definition

From: wooks (wookiz at hotmail.com)
Date: Thu Jul 17 16:13:23 EDT 2008

My first foray into macros. Practicing with some exercises.
(require (lib "defmacro.ss"))
(define-macro thunk-it
  (lambda (code)
    (cons 'lambda (cons empty (list  code)))))

gives

 reference to undefined identifier: empty

If i replace empty with '() it works.

Whats happening here.


Posted on the users mailing list.