Welcome to the CHICKEN Scheme pasting service

define-record pasted by megane on Mon Aug 27 17:20:41 2012

(module
 m1
 *
 (import chicken scheme)

 (define-record foo a)

 (let [(make* make-foo)]
   (set! make-foo
	 (lambda ()
	   (make* 1)))))

(module
 m2
 ()
 (import chicken scheme)
 ;;(import m1)

 (define-record foo a))

(import m1)
(print (make-foo))

;; uncommenting the import gives

;; Error: bad argument count - received 0 but expected 1: #<procedure (make-foo a)>

test added by anonymous on Mon Aug 27 19:08:58 2012

test

Your annotation:

Enter a new annotation:

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