From: Fabrice Marchant <fabricemarchant@free.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] functions' recursive construction
Date: Mon, 7 Jul 2008 20:36:59 +0200 [thread overview]
Message-ID: <20080707203659.41f107de@free.fr> (raw)
In-Reply-To: <C3DD7276-23D5-41BE-A272-7579586A5559@gmail.com>
On Mon, 7 Jul 2008 22:18:45 +0200
Christian Lindig <lindig@gmail.com> wrote:
>
> On Jul 7, 2008, at 8:01 PM, Fabrice Marchant wrote:
> > (I think the answer is 'No') Could you shed light on this ?
>
> Farbrice,
>
> I think you are right I but can't give a formal argument, only some
> intuition: you can't provide a static type for the function you want.
> The type of the function would depend on the integer value you only
> know at runtime. Such value-dependent types are not supported by
> OCaml's type system.
Thanks a lot Christian for these clear explanations. So they confirm William's answer.
Regards,
Fabrice
next prev parent reply other threads:[~2008-07-07 20:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 23:17 Damien Lefortier
2007-05-22 23:21 ` [Caml-list] " Jon Harrop
2007-05-22 23:31 ` Lukasz Stafiniak
2007-05-22 23:32 ` Lukasz Stafiniak
2007-05-22 23:41 ` Jon Harrop
2007-05-23 6:25 ` Jean-Christophe Filliatre
2008-07-07 18:01 ` Fabrice Marchant
[not found] ` <a58674cc0807071304x1640d670sde3045a0920a5922@mail.gmail.com>
2008-07-07 18:28 ` Fabrice Marchant
2008-07-07 20:40 ` Jeremy Yallop
[not found] ` <C3DD7276-23D5-41BE-A272-7579586A5559@gmail.com>
2008-07-07 18:36 ` Fabrice Marchant [this message]
2008-07-07 20:25 ` Jeremy Yallop
2008-07-07 19:11 ` Fabrice Marchant
2008-07-07 22:48 ` asmadeus77
2008-07-08 9:24 ` Daniel Bünzli
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=20080707203659.41f107de@free.fr \
--to=fabricemarchant@free.fr \
--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