English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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-23 (09:41)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] Delegation based OO
Stefano Zacchiroli wrote:

> Having to write
> 
>   delegate foo to delegate
>   delegate bar to delegate
>   ...
> 
> is not a big improvement, whereas writing


You missed the point, Zack.

   delegate class_type_foo to object_implementing_class_type_foo

This delegates all methods defined by class_type_foo to the prototype 
object.

Alex

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners