Browse thread
[Caml-list] Mutually recursive types and classes
-
Nick Name
- Olivier Andrieu
-
brogoff@s...
- Nick Name
- John Max Skaller
[
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: | Nick Name <nick.name@i...> |
| Subject: | Re: [Caml-list] Mutually recursive types and classes |
Thanks to all, I report another solution for completeness:
class b = ...
type a = A of b -> unit | ..
class c = object (this)
inherit b
method f : a -> unit = ...
end
wich is similar in spirit to Brian's but allows to write the "inherit"
part.
Vincenzo
-------------------
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