Modifying string returned from symbol->string shouldn't affect original symbol

Create issue
Issue #168 resolved
Takashi Kato repo owner created an issue

This shouldn't return 'b

(define s (string #\a))
(define sm (string->symbol s))
(string-set! (symbol->string sm) 0 #\b)
(print sm)

Comments (1)

  1. Log in to comment