<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/07/a26dafef4b887630fd93241adaf9e1e6"
  from="sebastien FURIC &lt;sebastien.furic@t...&gt;"
  author="sebastien FURIC"
  date="2002-07-15T16:23:30"
  subject="Re: [Caml-list] Deep copy"
  prev="2002/07/8e619ecadafd4f0b69b5f999e24d6c03"
  next="2002/07/c9430e65561feff15e8b94b431ac0365"
  prev-in-thread="2002/07/25cf95bd60ca67c507865c9452ae232e"
  prev-thread="2002/07/9c344668384b0077ed1732712963cb19"
  next-thread="2002/07/f588263f2499215c76c4696e61086612"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Deep copy">
<msg 
  url="2002/07/a6ba0ce22f3d5db7ef94de3a44da9825"
  from="zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN &lt;michael.marchegay@r...&gt;"
  author="zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN"
  date="2002-07-15T10:07:00"
  subject="[Caml-list] Deep copy">
<msg 
  url="2002/07/b11bb354506dff6a9f5ca7d09911a3cf"
  from="Ken Wakita &lt;wakita@i...&gt;"
  author="Ken Wakita"
  date="2002-07-15T13:42:46"
  subject="Re: [Caml-list] Deep copy">
<msg 
  url="2002/07/8e03aea7ddb74b19231e38254700e303"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-07-15T14:49:56"
  subject="Re: [Caml-list] Deep copy">
<msg 
  url="2002/07/b5f2a4fd55e3a1d98291199ad89dbc71"
  from="Ken Wakita &lt;wakita@i...&gt;"
  author="Ken Wakita"
  date="2002-07-15T15:34:11"
  subject="Re: [Caml-list] Deep copy">
</msg>
</msg>
<msg 
  url="2002/07/c97184ca9272fc14c7e26e7d28a7f6ca"
  from="Ken Wakita &lt;wakita@i...&gt;"
  author="Ken Wakita"
  date="2002-07-15T23:09:35"
  subject="Re: [Caml-list] Deep copy">
</msg>
</msg>
<msg 
  url="2002/07/a015dff01822b58f3bda38298a9a737c"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-07-15T15:08:42"
  subject="Re: [Caml-list] Deep copy">
<msg 
  url="2002/07/4f925d88bf549c83906ef318da735378"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2002-07-15T15:28:48"
  subject="Re: [Caml-list] Deep copy">
<msg 
  url="2002/07/25cf95bd60ca67c507865c9452ae232e"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-07-15T15:46:14"
  subject="Re: [Caml-list] Deep copy">
</msg>
</msg>
</msg>
<msg 
  url="2002/07/a26dafef4b887630fd93241adaf9e1e6"
  from="sebastien FURIC &lt;sebastien.furic@t...&gt;"
  author="sebastien FURIC"
  date="2002-07-15T16:23:30"
  subject="Re: [Caml-list] Deep copy">
</msg>
</msg>
</thread>

<contents>


zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN a écrit :
&gt; 
&gt; Hi all,
&gt; 
&gt; I'm writting a program that manipulates a graph structure and I need to make
&gt; deep copies of some of the graph nodes. The function Oo.copy donesn't perform
&gt; a deep copy and I haven't found any other that could make it.
&gt; 
&gt; Actually, the nodes of my graph are specified using a lot inheritance, and if
&gt; I want to write specific "copy" methods for them, I will need to disperse the
&gt; clonning actions downto the leaf of my inheritance tree.

 If your "copy" methods are really specific, I don't see any way of
doing that without reimplementing "copy" in each class you want to
change objects' behavior of... This is object-orientation.

 Or maybe I don't understand your problem.

 Why "functional copy" (i.e. {&lt; ... &gt;}) don't solve your problem ?

 Cheers,

 Sébastien.
-------------------
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

</contents>

</message>

