OCAML inheritance question

From: Damir BIJUKLIC (damirb@zesoi.fer.hr)
Date: Wed Mar 10 1999 - 22:50:45 MET


From: Damir BIJUKLIC <damirb@zesoi.fer.hr>
Message-Id: <199903102150.WAA27920@diana.zesoi.fer.hr>
Subject: OCAML inheritance question
To: caml-list@inria.fr
Date: Wed, 10 Mar 1999 22:50:45 +0100 (MET)

When i have inheritance hierarchy shaped like a diamond:

           a
          / \
         b c
          \ /
           d

class d inherits two copies of a's instance variables. If I want to have
only
one copy it seems I need to linearize inheritance hieararchy what I'm
reluctant to do.

So is there any way I could have d with one copy of a's instance variables?

Damir



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:20 MET