[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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
http://cristal.inria.fr/~remy/cours/appsem/ocaml-objects.html
Didier
-------------------
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