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] 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 (13:48)
From: Didier Remy <remy@m...>
Subject: Re: [Caml-list] Mutually recursive classes
Damien <Damien.Pous@ens-lyon.fr> writes:

> Hello,
> I would like to create two mutually recursive classes,
> parents (a) and children (b)
> Furthermore, I'd like to define them incrementally
> parents and children,
> parents and children with hands
> parents and children with hands and feet

It looks similar to the subject/observer pattern.  Check Section 5.3 of the
OCaml manual as well as my APPSEM course notes


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