[plt-scheme] r6rs import problem

From: kbohdan at mail.ru (kbohdan at mail.ru)
Date: Sun Jun 22 16:00:10 EDT 2008

Have problem importing following simple library:

<code>
#!r6rs
(library (internal utils)
          (export record record-case)
          (import (rnrs base)
                  (rnrs syntax-case))
          (define-syntax record
            (syntax-rules ()
                          ((_ vars val exp ...)
                           (apply (lambda vars exp ...) val)))))

</code>


Importing top-level program:

<code>
#!r6rs

(import (rnrs)
         (for (internal utils) expand))

(record (r g b) '(aa bb cc) (b g r))
; <<< causes ERROR: "expand: unbound variable in module in: record"
</code>

Any ideas ?

Thanks ahead.

--
Bohdan



Posted on the users mailing list.