[plt-scheme] using swindle within a module
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)
...