[plt-scheme] Re: plt-scheme Digest, Vol 9, Issue 14

From: Ryan Culpepper (ryan_sml at yahoo.com)
Date: Thu May 11 18:04:06 EDT 2006

--- geb a <geb_a at yahoo.com> wrote:

> Hello...
> 
> Can someone tell me why I can't use structure
> accessors for letters in module slip?
> 
> Thank you for your time.
> 
> Sincerely,
> 
> Dan
> 
> (module platonic-letter mzscheme
>   (define-struct letter(instance))
>   (define letters  
>       (map make-letter '(a b c d e f g)))
>   (provide letter letters)
> )
> 
> 
> (module slip mzscheme
>   (provide (all-from "platonic-letter.ss"))
>   (map letter-instance letters))

Module slip needs to require platonic-letter in order to use
letter-instance and letters.

Ryan



Posted on the users mailing list.