Version française
Home     About     Download     Resources     Contact us    
Browse thread
OCAML inheritance question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damir BIJUKLIC <damirb@z...>
Subject: OCAML inheritance question
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