From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Orre Newsgroups: gmane.lisp.guile.user Subject: shared-substrings missing in 1.7 Date: Fri, 16 Jan 2004 09:49:11 +0100 Organization: Royal Institute of Technology Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1074242951.6739.5.camel@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1074245118 24692 80.91.224.253 (16 Jan 2004 09:25:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2004 09:25:18 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 16 10:25:15 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AhQE7-0004Ck-00 for ; Fri, 16 Jan 2004 10:25:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AhQDo-00014h-CV for guile-user@m.gmane.org; Fri, 16 Jan 2004 04:24:56 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AhPxm-0006Q8-6w for guile-user@gnu.org; Fri, 16 Jan 2004 04:08:22 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AhPx1-00066u-TT for guile-user@gnu.org; Fri, 16 Jan 2004 04:08:08 -0500 Original-Received: from [130.237.222.202] (helo=smtp.nada.kth.se) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AhPjc-0003dM-U2 for guile-user@gnu.org; Fri, 16 Jan 2004 03:53:45 -0500 Original-Received: from bari.bacon.su.se (bari.bacon.su.se [130.237.152.231]) (authenticated bits=0) by smtp.nada.kth.se (8.12.10/8.12.1) with ESMTP id i0G8rf88018020 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 16 Jan 2004 09:53:42 +0100 (MET) Original-To: guile-user@gnu.org X-Mailer: Ximian Evolution 1.4.5 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2604 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2604 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