[Top][All Lists]

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

shared-substrings missing in 1.7

From: Roland Orre
Subject: shared-substrings missing in 1.7
Date: Fri, 16 Jan 2004 09:49:11 +0100

I'm still trying to adapt to guile 1.7.

It is always annoying when some function one makes heavy usage of
disappears. make-shared-substring is such a function, which is very
handy for conversions and reading fields from fixed width data base
tables. As I've used shared substrings it is also non trivial to
change the code.

In guile 1.6 it was said that explicit shared substrings would
disappear, and be replaced by shared strings internally, which
I interpret so that e.g. (substring ...) would return a shared 
substring, which would preserve the functionality, but... substrings
are still made by copying in 1.7, and now the tag for shared_substring
is also removed. To be able to continue adapt to guile 1.7 now I have
to do something quickly.

In about half of my code I can easily replace make-shared-substring
with normal substring, as I there have used them for efficiecny
reasons only, but in the rest of the code the functionality of shared
substrings is essential so I need to reimplement them.

The obvious quick and dirty solution is to implement shared-substrings
as scm_tc7_string. (Of course I then have to keep track of the shared
strings to garb them explicitly)

Does anyone have a better idea?

        Best regards
        Roland Orre

reply via email to

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