From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA08768; Mon, 15 Jul 2002 12:07:00 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA08809 for ; Mon, 15 Jul 2002 12:06:59 +0200 (MET DST) Received: from parsmtp2.rd.francetelecom.com (parsmtp2.rd.francetelecom.com [194.167.105.14]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6FA6wj07414 for ; Mon, 15 Jul 2002 12:06:58 +0200 (MET DST) Received: from LANMHS20.rd.francetelecom.fr ([10.193.21.60]) by parsmtp2.rd.francetelecom.com with Microsoft SMTPSVC(5.0.2195.4905); Mon, 15 Jul 2002 12:06:58 +0200 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: [Caml-list] Deep copy X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Mon, 15 Jul 2002 12:06:58 +0200 Message-ID: <0489A7888F080B4BA73B53F7E145F29A1B0AF3@LANMHS20.rd.francetelecom.fr> Thread-Topic: Deep copy Thread-Index: AcIr51lPzpvaWZfAEdaCaQAGKTiWJQ== From: "zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN" To: X-OriginalArrivalTime: 15 Jul 2002 10:06:58.0644 (UTC) FILETIME=[5B25D140:01C22BE7] Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi all, I'm writting a program that manipulates a graph structure and I need to = make deep copies of some of the graph nodes. The function Oo.copy donesn't = perform a deep copy and I haven't found any other that could make it. Actually, the nodes of my graph are specified using a lot inheritance, = and if I want to write specific "copy" methods for them, I will need to = disperse the clonning actions downto the leaf of my inheritance tree. So I'd like to know is there is a clean way to make a deep copy of any = object. Thank you. -- Micha=EBl Marchegay, Stagiaire France Telecom R&D du 11/02/2002 au = 26/07/2002 Sous la responsabilit=E9 d'Olivier Dubuisson DTL/TAL - 22307 Lannion Cedex - France ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners