[racket-dev] relationship between define-struct and struct

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Sat Aug 28 15:23:02 EDT 2010

What is the relationship between define-struct and struct in Racket
5.0.1?  By define-struct I mean the construct provided in ASL.  In my
custom language I have

(define-struct tv (tag value))
(provide (struct-out tv))

and I get the error

struct-out: no import for structure-type identifier in: struct:tv

Is this because define-struct suppresses the struct:tv "structure-type
information"?  (If so, why?)  ((And if so, is there a way to make
struct-out work shy of copying the implementation of define-struct and
adding/removing the line that hides this?))


Posted on the dev mailing list.