Summary
read/write invariance on symbols consisting of digits
Metadata
- Id: d53d3ee5d1724c374e8a0583fdfa3b1103baf8b5
- Trac id: 333
- Type: defect
- Reporter: zbigniew
- Owner:
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: minor
- Milestone:
- Version: 4.5.x
- Changetime: 2011-04-04 08:31:00 UTC
- Created: 2010-08-12 23:05:45 UTC
- Keywords: 3 is the loneliest symbol
Description
(symbol->string
(with-input-from-string
(with-output-to-string
(lambda ()
(write (string->symbol "3"))))
read))
Error: (symbol->string) bad argument type - not a symbol: 3
because the 3 is read as a number. In other words, (string->symbol "3") should return |3| not 3. It works fine for floating point numbers, though.
#;11> (string->symbol "1.3") |1.3| #;12> (string->symbol "3") 3
Changes and comments
[2010-08-13 10:06:01 UTC] felix changed status from new to closed
[2010-08-13 10:06:01 UTC] felix set resolution to fixed
[2011-04-04 08:31:00 UTC] felix removed milestone 4.6.0
[2011-04-04 08:31:00 UTC] felix wrote:
Milestone 4.6.0 deleted