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
Re: [Caml-list] Mutually recursive classes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-03 (17:41)
From: pous@e...
Subject: Re: [Caml-list] Mutually recursive classes
On 3 Nov 2003, Didier Remy wrote:

> It looks similar to the subject/observer pattern.  
> Check Section 5.3 of the OCaml manual as well as my 
> APPSEM course notes
It only looks similar...
I am working with class _types_ :
This hierarchy is included in a large project, and I need
_readable_ interfaces (as well as _writeable_ :-)

I can't write
"constraint 'a = <an enormous explicit object type as 'b that has
already been written half a dozen times as 'a..>"

Furthermore, my classes _are_ mutually recursive : when I retrieve a   
parent from its child, I want a "full-featured parent" (and vice-versa)

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: