bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string-set! examples in r5rs.html


From: Ludovic Courtès
Subject: Re: string-set! examples in r5rs.html
Date: Sun, 28 Sep 2008 22:18:19 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Hi,

szgyg <address@hidden> writes:

> No, (read) should return mutable string.
>
> "literal constants and the strings returned by symbol->string are
> immutable objects, while all objects created by the other procedures
> listed in this report are mutable." [3]
>
> So scm_read_string() should behave differently when reads program and data.

... which doesn't sound convenient, *sigh*.

Technically, strings in Guile all live in writable memory, so it
may actually be wiser to just live with that.

FWIW, the interpreters of Ikarus and Bigloo consider literal strings
writable.

Should we just revert the patch, or does anyone have a better idea?

Thanks,
Ludo'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]