[plt-scheme] Reading structs from a file

From: wooks . (wookiz at hotmail.com)
Date: Tue Mar 23 06:06:54 EDT 2010

Tried to read a posn that I had written to a file




(with-input-from-file "posn.txt" (lambda () (posn-x (read))))


Got posn-x: expects argument of type <struct:posn>; given #(struct:posn 3 4)


Btw I thought with-input-from-file was supposed to be part of ASL?


PS I can read lists from file no problem.
Send us your Hotmail stories and be featured in our newsletter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100323/879d23fc/attachment.html>

Posted on the users mailing list.