Make `symbol->string' return a read-only string.
authorLudovic Courtès <ludo@gnu.org>
Mon, 22 Sep 2008 20:51:36 +0000 (22:51 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 23 Sep 2008 16:44:27 +0000 (18:44 +0200)
commitfd2b17b9cb7aaa6b550ad9b6a3efe3c53c94ccce
tree02aa2b139dcf907ded34e5e03477f5dcaedf806c
parent1dd797921c950f0a4d396faa6d7326ec6928e771
Make `symbol->string' return a read-only string.

* libguile/strings.c (scm_i_symbol_substring): Return a read-only string
  since R5RS requires `symbol->string' to return a read-only string.
  Reported by Bill Schottstaedt <bil@ccrma.Stanford.EDU>.

* test-suite/tests/symbols.test: Add `define-module' clause.
  (exception:immutable-string): Adjust to current exception.
  ("symbol->string")["result is an immutable string"]: Use
  `pass-if-exception' instead of `expect-fail-exception'.

* NEWS: Update.
NEWS
libguile/strings.c
test-suite/tests/symbols.test