[plt-scheme] using swindle within a module

From: Jefferson Heard (heard at duvel.ir.iit.edu)
Date: Thu Aug 17 09:03:36 EDT 2006

Chris Wright wrote:
> I am trying to wrap some simple swindle code in a module
>
> (module beliefs mzscheme
>  (require (lib "swindle.ss" "swindle"))
>
>  (defclass test ()
>    (h :initializer (lambda () (make-hash-table))
>        :accessor h))
>
>  (provide test)
> )
>
>
> but evaluation of this code gives:
>
> Welcome to DrScheme, version 350.
> Language: Pretty Big (includes MrEd and Advanced Student).
> module: identifier already imported (from a different source) in: 
> set!-values
>>
>
> I would be grateful for any help
>
> Cheers
>
> Chris
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
Try this:

(module beliefs (lib "swindle.ss" "swindle)
...



Posted on the users mailing list.