Welcome to the CHICKEN Scheme pasting service

let-values and define added by alexcharlton on Sat Jun 14 19:34:32 2014

(import chicken scheme)

;;; This does not work
(let-values (((a b) (values 1 2)))
  (define foo (list a b)))

(print foo)
;; --> Error: unbound variable: foo

;;; This does:
;; (define foo #f)
;; (let-values (((a b) (values 1 2)))
;;    (set! foo (list a b)))

;;(print foo)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which module provides `foreign-declare'?
Visually impaired? Let me spell it for you (wav file) download WAV