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: How to copy hash table? Date: Fri, 23 Jan 2004 14:58:17 +0100 Organization: NeuroLogic Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1074866297.23547.840.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 1074866891 11826 80.91.224.253 (23 Jan 2004 14:08:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2004 14:08:11 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 23 15:07:58 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 1Ak1yY-0004x3-00 for ; Fri, 23 Jan 2004 15:07:58 +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 1Ak1x0-0001vS-0e for guile-user@m.gmane.org; Fri, 23 Jan 2004 09:06:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ak1w9-0001to-SI for guile-user@gnu.org; Fri, 23 Jan 2004 09:05:29 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ak1vZ-0001ij-8r for guile-user@gnu.org; Fri, 23 Jan 2004 09:05:24 -0500 Original-Received: from [217.70.33.37] (helo=lists.levonline.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ak1uC-0001SF-1Z for guile-user@gnu.org; Fri, 23 Jan 2004 09:03:28 -0500 Original-Received: from localhost (lists.levonline.com [127.0.0.1]) by lists.levonline.com (Postfix) with ESMTP id 5E4F7D067D; Fri, 23 Jan 2004 15:03:23 +0100 (CET) Original-Received: from lists.levonline.com ([127.0.0.1]) by localhost (lists.levonline.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08241-07; Fri, 23 Jan 2004 15:03:22 +0100 (CET) Original-Received: from ormen1.basenet.levonline.com (ormen1.levonline.com [217.70.32.117]) by lists.levonline.com (Postfix) with ESMTP id AA8B0D00E1; Fri, 23 Jan 2004 15:03:22 +0100 (CET) Original-Received: from bari.bacon.su.se (bari.bacon.su.se [130.237.152.231]) (authenticated bits=0) by ormen1.basenet.levonline.com (8.12.8/8.12.8) with ESMTP id i0NDwcfh002688; Fri, 23 Jan 2004 14:58:38 +0100 Original-To: guile-user@gnu.org X-Mailer: Ximian Evolution 1.4.5 X-Virus-Scanned: By http://levonline.com - free virus scanning for all customers 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:2695 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2695 In earlier guiles, where hash-tables were vectors, I used copy-tree to copy a hash table. Now in guile-1.7 copy-tree of the hash-table gives me the same hash table back, which I assume is correct for atomic objects. What I want is a table where the handles are copies so when modifying the values in the new table it won't affect the original. I guess there exists no trick to generally copy objects. (Of course, for now, to overcome this I'm using hash-for-each but I'm curios about the general issue) /Roland _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user