Welcome to the CHICKEN Scheme pasting service

a bug? pasted by megane on Mon Jun 11 09:44:48 2012

(define a 1)
(print a)
(eval `(set! a 2))
(print a) ; 2

(module
 c
 *
 (import chicken scheme)
 (define b 1)
 (print b)
 (eval `(set! b 2))
 (print b) ; 1
)

no title added by megane on Mon Jun 11 10:05:11 2012

(import c)
(print b)

(define a 1)
(print a)
(eval `(set! a 2))
(print a) ; 2

(module
 c
 *
 (import chicken scheme)
 (define b 1)
 (print b)
 (define (foo)
  (eval `(set! b 2) (module-environment 'c))) ; Error: unbound variable: set!

 (foo)
 (print b) ; 1
)

(import c)
(print b)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the procedure to access a character in a string by index in R5RS?
Visually impaired? Let me spell it for you (wav file) download WAV