unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* shared-substrings missing in 1.7
@ 2004-01-16  8:49 Roland Orre
  2004-01-16 12:52 ` Marco Parrone
  2004-01-16 19:13 ` Greg Troxel
  0 siblings, 2 replies; 14+ messages in thread
From: Roland Orre @ 2004-01-16  8:49 UTC (permalink / raw)


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




_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-01-20  9:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-16  8:49 shared-substrings missing in 1.7 Roland Orre
2004-01-16 12:52 ` Marco Parrone
2004-01-16 13:49   ` Roland Orre
2004-01-16 20:29   ` Tom Lord
2004-01-16 19:13 ` Greg Troxel
2004-01-16 20:24   ` Paul Jarc
2004-01-16 20:35   ` About shared substrings Roland Orre
2004-01-16 21:12     ` Neil Jerram
2004-01-17 22:34       ` Keith Wright
2004-01-16 21:54     ` Mikael Djurfeldt
2004-01-16 22:00     ` Tom Lord
2004-01-16 20:45   ` shared-substrings missing in 1.7 Tom Lord
2004-01-19 16:54     ` Greg Troxel
2004-01-20  9:02       ` tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).