This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RO-strings in Guile


Jim Blandy <jimb@red-bean.com> writes:

>     both should be marked as shared, so that if
>     either is side-effected, Guile will actually copy the string
>     first.

Hmm... does this mean that both will need to have a mutex, and that
one always has to lock this mutex before reading it?

>     This gets us the semantics of a copy, with the performance of
>     sharing.

Well, I wonder...

/mdj