From: Jeremy Yallop <yallop@gmail.com>
To: Julien Signoles <julien.signoles@gmail.com>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Converting "fun ... (type t) ..." into a caml < 3.12 code
Date: Wed, 26 Jan 2011 16:55:07 +0000 [thread overview]
Message-ID: <AANLkTinpEh2713_9y5C_ojZvRQCxH_Bq7RAe-+XgHjuW@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinJ9DF-kYzmQmhJDPnD2=OSVmD9v5q9FXqUuLYL@mail.gmail.com>
On 26 January 2011 12:58, Julien Signoles <julien.signoles@gmail.com> wrote:
> How to convert the following ocaml 3.12 code into a typable ocaml < 3.12
> code?
> I have a solution using Obj. Is it possible without Obj?
There are safer approaches (than Obj) to a "universal type" described here:
http://ocaml.janestreet.com/?q=node/18
Whether your problem can be solved with such an approach depends on
how flexible your definition of "the same [type]" is. You can
certainly write a function of the same type and behaviour as 'f' that
way, though.
Jeremy.
next prev parent reply other threads:[~2011-01-26 16:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 12:58 Julien Signoles
2011-01-26 15:17 ` Stefan Holdermans
[not found] ` <AANLkTinyQn4L0C8hHHXJP20upzi++2oKU6RC-2ZTEjDA@mail.gmail.com>
2011-01-26 16:30 ` Julien Signoles
2011-01-26 16:55 ` Jeremy Yallop [this message]
2011-01-27 14:18 ` Julien Signoles
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=AANLkTinpEh2713_9y5C_ojZvRQCxH_Bq7RAe-+XgHjuW@mail.gmail.com \
--to=yallop@gmail.com \
--cc=caml-list@inria.fr \
--cc=julien.signoles@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