Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 1999-03-11 (12:34)
From: Damir BIJUKLIC <damirb@z...>
Subject: OCAML inheritance question
When i have inheritance hierarchy shaped like a diamond:

          / \
         b   c
          \ /

class d inherits two copies of a's instance variables. If I want to have
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?