Browse thread
Object typing
[
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: | Matthew O'Connor <angagon@e...> |
| Subject: | Re: [Caml-list] Object typing |
Pietro Abate wrote: > you can try to restrict the polimorphy variant type (and maybe > having more than one type to make the hierarchy explicit). Restricting the type to a fixed variant is an option that I would like to stay away from as it would require the base entity class to know of all possible subtypes. (Yes, this could be solved using the module system, but I'd rather not.) Thanks, though. Matt