Welcome to the CHICKEN Scheme pasting service

What am i missing here? added by certainty on Mon May 21 21:03:34 2012

(module support
  *
  (import scheme chicken)
  (define an-identifier "from-support"))


(module mod5
  *
  (import scheme chicken extras)

  (import-for-syntax support)

  (define-syntax test-macro
   (ir-macro-transformer
    (lambda (expr inject cmp)
      (let ((x an-identifier))
       `(list ',an-identifier))))))


(import mod5)

(test-macro)


;; csc test2.scm
;;
;; Error: during expansion of (test-macro ...) - unbound variable: support#an-identifier
;;
;;	Call history:
;;
;;	<syntax>	  (##core#begin (test-macro))
;;	<syntax>	  (test-macro)	<--

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which procedure can be used to check whether its argument is a string?
Visually impaired? Let me spell it for you (wav file) download WAV