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
[Caml-list] Delegation based OO
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-03-24 (14:12)
From: Yamagata Yoriyuki <yoriyuki@m...>
Subject: Re: [Caml-list] Delegation based OO
From: Alex Baretta <>
Subject: Re: [Caml-list] Delegation based OO
Date: Wed, 24 Mar 2004 11:43:48 +0100

> Delegation is no relative of inheritance. Inheritance is a syntactic 
> property (essentially classes inherit code), whereas delegation is a 
> semantic property: once one method is delegated by a proxy object to an 
> executor object, the the visibility of the proxy is lost. The method is 
> executed as if it were invoked directly on the executor.

There is a certain approach (object-based OO) which makes inheritance
to be a relation between objects (and get rid of the concept of class
altogether).  In this approach, we can add, and modify mothods in
objects in run time.  I confuse this with Alex proposal.

Yamagata Yoriyuki

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