From: "Jacques Carette" <carette@mcmaster.ca>
To: Jonathan Roewen <jonathan.roewen@gmail.com>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] C++ templates to OCaml
Date: Sun, 19 Jun 2005 09:17:29 -0400 [thread overview]
Message-ID: <web-95999882@cgpsrv2.cis.mcmaster.ca> (raw)
In-Reply-To: <ad8cfe7e05061823535934e9c@mail.gmail.com>
Jonathan Roewen <jonathan.roewen@gmail.com> wrote:
>
> What's the best way to imitate C++ templates in OCaml?
<plug>
I have been quite successful at doing C++ template-like things in MetaOCaml.
In fact, using Functors and Modules judisciously, it is possible to hide all of the code-generation aspects and write
quite straightforward code that can be instantiated in many different ways.
An earlier version of this work (joint with Oleg Kiselyov) is available at
http://www.cas.mcmaster.ca/~carette/metamonads/, and has been accepted at GPCE 2005.
</plug>
Thanks for asking ;-)
Jacques
next prev parent reply other threads:[~2005-06-19 13:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-19 6:53 Jonathan Roewen
2005-06-19 13:17 ` Jacques Carette [this message]
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
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=web-95999882@cgpsrv2.cis.mcmaster.ca \
--to=carette@mcmaster.ca \
--cc=caml-list@yquem.inria.fr \
--cc=jonathan.roewen@gmail.com \
/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