Browse thread
[Caml-list] dynamic dispatching
- Mirko Aigner
[
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: | Mirko Aigner <Mirko.Aigner@a...> |
| Subject: | [Caml-list] dynamic dispatching |
Hi !! I'm new to OCAML and have the following question: I have to reimplement some code written in C++. In C++ there is used a desgin pattern named Visitor, which i used instead of a dynamic_cast. My question: is it generally possible to decide at runtime, if an object is of a specific type ?! What I have read in the reference manual and some website's dynamic typechecking is not supported, means this dynamic dispatching as well ?! I'm grateful for any answers ( positive or negative ) greetings Mirko Aigner ------------------- 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