[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-mit-scheme] Compiler doesn't like SLIB let-values (SRFI 11)
From: |
John Carr |
Subject: |
[Bug-mit-scheme] Compiler doesn't like SLIB let-values (SRFI 11) |
Date: |
Mon, 23 Apr 2012 16:19:03 -0400 |
I'm not sure if this is a bug (and if so, whose) or an expected
incompatibility betwen SLIB and MIT-Scheme.
If I compile a function that uses let-values (SRFI 11) the function
errors at runtime. For example, with SLIB installed compile this file:
(declare (usual-integrations))
(require 'srfi-11)
(define (gen) (values #f #t))
(define (fn)
(let-values (((a b) (gen)))
(display a)
(display " ")
(display b)
(newline)))
If I (load) the compiled file and evaluate (fn) I get an error
;Unbound variable: b
If I load the .scm file it runs fine.
If I (require 'srfi-11) before compiling, i.e.
(require 'srfi-11)
(cf "test")
the behavior is the same.
This happens with versions
Image saved on Tuesday November 8, 2011 at 10:45:46 PM
Release 9.1.1 || Microcode 15.3 || Runtime 15.7 || SF 4.41
LIAR/x86-64 4.118 || Edwin 3.116
and
Image saved on Wednesday August 10, 2011 at 11:47:31 AM
Release 9.0.1 || Microcode 15.1 || Runtime 15.7 || SF 4.41
LIAR/x86-64 4.118 || Edwin 3.116
- [Bug-mit-scheme] Compiler doesn't like SLIB let-values (SRFI 11),
John Carr <=