From: Joel Reymont <joelr1@gmail.com>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] function that works on different record types, assuming they have a given field
Date: Mon, 28 Mar 2011 19:16:09 +0100 [thread overview]
Message-ID: <74205EDF-69A3-479A-9214-52D2AB849558@gmail.com> (raw)
Is it possible to write a function that works on different record types that have, say, a field x of type int?
The records would be in different modules but the field name and type will always be the same.
Thanks, Joel
--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
next reply other threads:[~2011-03-28 18:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 18:16 Joel Reymont [this message]
2011-03-28 18:34 ` David Rajchenbach-Teller
2011-03-28 18:35 ` Joel Reymont
2011-03-30 12:38 ` [Caml-list] " Dawid Toton
2011-03-30 14:15 ` Gabriel Scherer
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=74205EDF-69A3-479A-9214-52D2AB849558@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@inria.fr \
/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