From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA13261; Tue, 10 Jun 2003 12:09:11 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA12817 for ; Tue, 10 Jun 2003 12:09:09 +0200 (MET DST) Received: from mailrelay2.alcatel.de (mailrelay1.alcatel.de [194.113.59.75]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h5AA99H21904 for ; Tue, 10 Jun 2003 12:09:09 +0200 (MET DST) Received: from alcatel.de (slbpx8.bln.sel.alcatel.de [149.204.198.4]) by mailrelay2.alcatel.de (8.12.9/8.12.9) with ESMTP id h5AA74AA017565 for ; Tue, 10 Jun 2003 12:07:04 +0200 (MET DST) Message-ID: <3EE5AE46.4050307@alcatel.de> Date: Tue, 10 Jun 2003 12:09:10 +0200 From: Mirko Aigner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] dynamic dispatching Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Alcanet-virus-scanned: h5AA74AA017565 at mailrelay2.alcatel.de X-Spam: no; 0.00; alcatel:99 dispatching:01 runtime:01 website's:99 ocaml:01 typechecking:01 supported:01 dynamic:03 object:03 cast:04 generally:05 pattern:06 type:07 grateful:07 manual:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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