[Top][All Lists]

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

Re: Guile: What's wrong with this?

From: Bruce Korb
Subject: Re: Guile: What's wrong with this?
Date: Tue, 03 Jan 2012 15:15:00 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0

On 01/03/12 14:24, Ludovic Courtès wrote:
2.  it is completely, utterly wrong to mutilate the
     Guile library into such a contortion that it
     interprets this:
         (define y "hello")
     to be a request to create an immutable string anyway.
     It very, very plainly says, "make 'y' and fill it with
     the string "hello".  Making it read only is crazy.

It stems from the fact that string literals are read-only, per R5RS
(info "(r5rs) Storage model"):

   [[blah, blah, blah]]

In Guile this has been the case since commit

The reason for this is that Guile’s compiler tries hard to avoid
duplicating constants in the output bytecode.  Thus, modifying a

You have changed the interface without deprecation or any other multi-year 
Please change it back.  Please fix the problem by adding (define-strict y 
to have this new semantic.  Thank you.

reply via email to

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