[plt-scheme] Re: Using srfi-19 with PLT-Scheme

From: David Van Horn (dvanhorn at cs.uvm.edu)
Date: Sat Dec 11 00:10:43 EST 2004

David J. Neu wrote:
> I'm trying to use srfi 19 and the following simple test results in
> error shown below:
> 
> (module test
>   mzscheme
>   (require
>    (lib "19.ss" "srfi")
>    (printf "DATE~n")))
> 
>>(require "test.ss")
> 
> test.ss:4:2: module: identifier already imported (from a different source) at: make-date in: (require (lib "19.ss" "srfi") (printf "DATE~n"))
> 
> I'm assuming that I'm getting a conflict with the mzscheme date struct?
> 
> Is there a work around?

You can use (require (lib "time.ss" "srfi" "19")), which prefixes all 
conflicting names with `srfi:'.

David



Posted on the users mailing list.