one direction works with e.g.
(call-with-input-string "(* 7 13)" read)
The other way round looks like
(call-with-output-string (lambda (p) (write foo p )))
This can't be used directly, since the written representation of
closures doesn't look like (lambda (...) ...). The translation of
#<CLOSURE ... > to (lambda ... ) is still necessary. I'll leave the
string translation details as homework for you. Maybe there's someone
out there on comp.lang.scheme who wants to do it.
-Dolfi
P.S. To my knowledge this is not R4RS...
Adolf Mathias Email: <dolfi@zkm.de>
Center for Art & Media, Dept. for Image Media
Post Box 6919 76049 Karlsruhe
Tel. +49 (0)721 9340 404 Fax. ...9340 49