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

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Thu May 11 18:04:27 EDT 2006

1. You must require the module.
2. You must export the structure definition.

(module platonic-letter mzscheme
   (define-struct letter(instance))
   (define letters
       (map make-letter '(a b c d e f g)))
   (provide (struct letter (instance)) letters)
)


(module slip mzscheme
   (require platonic-letter)
   (provide (all-from platonic-letter))
   (map letter-instance letters))

-- Matthias


On May 11, 2006, at 5:50 PM, geb a 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))
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.