Welcome to the CHICKEN Scheme pasting service

Different behaviour Chicken 4 and 5 added by pluizer on Sun Mar 22 01:52:36 2020

;; In Chicken 4 this code returns: hallo-test (what I want ;)
;; In Chicken 5 this code returns: hallo2829-test, it seems like (inj <a>) returns an uninterned symbol.

(define-syntax ir-test
  (ir-macro-transformer
   (lambda (exp inj _)
     (apply (lambda (_ <a>)
              `(print ',(symbol-append (inj <a>) '-test)))
            exp))))

(ir-test hallo)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the procedure that returns the car of a cdr?
Visually impaired? Let me spell it for you (wav file) download WAV