[ sisc-Bugs-735969 ] read/write invariance broken for some symbols

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
Bugs item #735969, was opened at 2003-05-11 03:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=735969&group_id=23735

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Radestock (mradestock)
Assigned to: Nobody/Anonymous (nobody)
Summary: read/write invariance broken for some symbols

Initial Comment:
(let ([x (string->symbol "1")])
  (eq? (with-input-from-string
           (with-output-to-string
               (lambda () (write x)))
         (lambda () (read)))
       x))
;=> '#f

|string->symbol| returns a symbol. |write| renders this
as \1 which |read| reads as the *number* 1.

One way to fix this would be to write |\1| instead, but
I don't know how difficult this would be and whether it
would break anything else.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=735969&group_id=23735


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.