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 TAA07929; Thu, 16 Sep 2004 19:22:21 +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 TAA06617 for ; Thu, 16 Sep 2004 19:22:20 +0200 (MET DST) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8GHM3E9023075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 16 Sep 2004 19:22:09 +0200 Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.13.1/8.12.11) with ESMTP id i8GHLrmo027937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Sep 2004 12:21:56 -0500 (CDT) Date: Thu, 16 Sep 2004 12:31:51 -0500 (CDT) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Christopher Alexander Stein cc: caml-list@inria.fr Subject: Re: [Caml-list] dynamic dispatch In-Reply-To: <20040916124228.J86497@bowser.eecs.harvard.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde with ID 4149CBBB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 stein:01 ocaml:01 caml:01 alexander:01 sep:01 syntax:02 wrote:03 obj:03 obj:03 dynamic:03 dynamic:03 object:03 redirect:95 lex:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 16 Sep 2004, Christopher Alexander Stein wrote: > > Hi, Is it possible to use the Caml OO features to implement > dynamic dispatch (without using type system back doors such as > Obj.Magic or object serialization)? Or are the OO features just > syntax. Thank you, Lex What do you need dynamic dispatch for? What problem are you trying to solve? I ask because I don't think it's possible without Obj.magic and friends. I've never needed it, but who knows- you might have a legitimate need for it. In which case your problem becomes a case example and shows me something important about Ocaml and programming. Or you might just need to think about the problem differently. -- "Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it." - Gene Spafford Brian ------------------- 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