caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Brian Hurt <bhurt@spnz.org>
To: Christopher Alexander Stein <stein@eecs.harvard.edu>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] dynamic dispatch
Date: Thu, 16 Sep 2004 12:31:51 -0500 (CDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0409161227140.5809-100000@localhost.localdomain> (raw)
In-Reply-To: <20040916124228.J86497@bowser.eecs.harvard.edu>

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


      parent reply	other threads:[~2004-09-16 17:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 16:44 Christopher Alexander Stein
2004-09-16 16:54 ` David Brown
2004-09-16 17:31 ` Brian Hurt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0409161227140.5809-100000@localhost.localdomain \
    --to=bhurt@spnz.org \
    --cc=caml-list@inria.fr \
    --cc=stein@eecs.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).