Welcome to the CHICKEN Scheme pasting service

macros and module-environment added by caolanm on Tue Jun 7 09:54:51 2016

;; example.scm

(module example *

(import chicken scheme)

(define (add a b) (+ a b))

(define-syntax double
  (syntax-rules ()
    ((_ x) (add x x))))

)


;; run.scm

(load "./example.scm")
(import example)

(print (eval '(double 10) (module-environment 'example)))



;; Running the above results in:
;; Error: unbound variable: add43

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which R5RS procedure can be used to concatenate strings?
Visually impaired? Let me spell it for you (wav file) download WAV