[plt-scheme] importing into mzscheme

From: Roy Lowrance (roy.lowrance at gmail.com)
Date: Thu Feb 26 21:25:13 EST 2009

I am trying to uset set-car! and have figured out that I need to
import (rnrs mutable-pairs (6)):
http://docs.plt-scheme.org/r6rs-lib-std/r6rs-lib-Z-H-18.html#node_idx_1276

But I can't get the import statement to work. My code is:
(import (rnrs mutable-pairs (6)))
(define a-list '(a b c))
(set-car! a-list 'x)
(display a-list)

I start mzscheme and (load "the-file.scm") and receive an error message:
import: misuse of unit keyword in: (import (rnrs mutable-pairs (6)))

What's the secret to getting this to work?

Thanks, Roy


Posted on the users mailing list.