Yup, it even says it in the documentation under the prefab section. I just didn't make it far enough down the page.<br><br>Thanks.<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 10:12 PM, Vincent St-Amour <span dir="ltr"><<a href="mailto:stamourv@ccs.neu.edu">stamourv@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Structs are generative, so this won't work.<br>
<br>
Prefab structs are probably what you want here.<br>
<br>
Vincent<br>
<br>
<br>
At Tue, 13 Dec 2011 22:05:40 -0600,<br>
Todd Bittner wrote:<br>
><br>
> [1 <multipart/alternative (7bit)>]<br>
> [1.1 <text/plain; ISO-8859-1 (7bit)>]<br>
<div><div class="h5">> I'm trying to do something like the following:<br>
><br>
> I create a struct, say (struct foo (bar baz) #:transparent), where bar is a<br>
> string and baz is an integer, and then write - using write, not display -<br>
> several instances of the struct to a file. When I inspect the file, it<br>
> looks something like this:<br>
><br>
> #(struct:foo "string1" 1)<br>
> #(struct:foo "string2" 2)<br>
><br>
> When I read this back in to my program, I get an s-exp back that is<br>
> '#(struct:foo "string1" 1). When I eval it, it's still '#(struct:foo<br>
> "string1" 1), and calling (foo?) on it returns #f. Is there someway that I<br>
> can reconstitute this back into a foo struct?<br>
><br>
> Thanks.<br>
</div></div>> [1.2 <text/html; ISO-8859-1 (quoted-printable)>]<br>
><br>
> [2 <text/plain; us-ascii (7bit)>]<br>
> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
</blockquote></div><br>