Welcome to the CHICKEN Scheme pasting service

modules & macros added by shorbaji on Wed Apr 8 14:04:41 2015


(import chicken scheme)

; this works
(import chicken scheme)
(define (foo x) x)

(define-syntax bar
  (er-macro-transformer
    (lambda (e r c)
      (let ((baz (foo 1)))
        baz))))
        
(bar 1) 

; this fails - unbound variable: foo
(module z
        (*)
        (import chicken scheme)
        (define (foo x)
          x)

        (define-syntax bar
          (er-macro-transformer
            (lambda (e r c)
              (let ((baz (foo 1)))
                baz
                ))))
        (bar 1))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What does `(string-chomp "foobar")' produce?
Visually impaired? Let me spell it for you (wav file) download WAV