caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] C++ templates to OCaml
@ 2005-06-19  6:53 Jonathan Roewen
  2005-06-19 13:17 ` Jacques Carette
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jonathan Roewen @ 2005-06-19  6:53 UTC (permalink / raw)
  To: caml-list

Hi,

What's the best way to imitate C++ templates in OCaml? I have some
code that makes extensive use of templates that I want to rewrite in
OCaml, and using record types and functions is getting messy, and a
lot more convoluted than the C++ code.

Are objects the way to go here? And if so, can someone give me a
simple example of how this would work?

Jonathan


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

end of thread, other threads:[~2005-06-20  2:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-19  6:53 [Caml-list] C++ templates to OCaml Jonathan Roewen
2005-06-19 13:17 ` Jacques Carette
2005-06-19 18:05 ` padiolea
     [not found] ` <1119175572.7402.1.camel@titania>
2005-06-19 21:32   ` Jonathan Roewen
2005-06-19 22:34     ` Benjamin Geer
2005-06-20  2:53 ` 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).