[racket] Providing structures from modules

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Fri Mar 25 17:05:10 EDT 2011

(struct m-value (raw interp flag))
(provide (struct-out m-value))

just like before.

Jay

2011/3/25 Gregory Woodhouse <gregwoodhouse at me.com>:
> I'm accustomed to using the following syntax to define structure types in a module
>
> (define-struct m-value (raw interp flag))
> (provide (struct-out m-value))
>
> but I see that the  documentation (Reference, sec. 4.1) says that the form define-struct is provided for backward compatibility, and struct should be used instead. That seems to work in the context of a single module, but I'm unsure how to expoert the various constructors, accessors, etc. without using define-struct. hat is the proper way to make structure definitions available outside the module?
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93



Posted on the users mailing list.