caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] dynamic dispatch
@ 2004-09-16 16:44 Christopher Alexander Stein
  2004-09-16 16:54 ` David Brown
  2004-09-16 17:31 ` Brian Hurt
  0 siblings, 2 replies; 3+ messages in thread
From: Christopher Alexander Stein @ 2004-09-16 16:44 UTC (permalink / raw)
  To: caml-list


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

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] dynamic dispatch
  2004-09-16 16:44 [Caml-list] dynamic dispatch Christopher Alexander Stein
@ 2004-09-16 16:54 ` David Brown
  2004-09-16 17:31 ` Brian Hurt
  1 sibling, 0 replies; 3+ messages in thread
From: David Brown @ 2004-09-16 16:54 UTC (permalink / raw)
  To: Christopher Alexander Stein; +Cc: caml-list

On Thu, Sep 16, 2004 at 12:44:40PM -0400, 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

Dynamic dispatch is the main feature of Ocaml OO.

Dave

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] dynamic dispatch
  2004-09-16 16:44 [Caml-list] dynamic dispatch Christopher Alexander Stein
  2004-09-16 16:54 ` David Brown
@ 2004-09-16 17:31 ` Brian Hurt
  1 sibling, 0 replies; 3+ messages in thread
From: Brian Hurt @ 2004-09-16 17:31 UTC (permalink / raw)
  To: Christopher Alexander Stein; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-16 18:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 16:44 [Caml-list] dynamic dispatch Christopher Alexander Stein
2004-09-16 16:54 ` David Brown
2004-09-16 17:31 ` Brian Hurt

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).