[plt-scheme] Reading structs from a file
Tried to read a posn that I had written to a file
with
(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
http://clk.atdmt.com/UKM/go/195013117/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100323/879d23fc/attachment.html>