From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: let rec and environment sharing
Date: Sat, 1 Nov 2008 11:40:47 +0100 [thread overview]
Message-ID: <407B87C2-1300-440F-9C40-A656CF2446C2@erratique.ch> (raw)
In-Reply-To: <490B7603.3010606@users.sourceforge.net>
Le 31 oct. 08 à 22:17, Zheng Li a écrit :
> AFAIK, the answer is yes.
>
> - I once saw this on a teaching slide of Xavier Leroy (I don't
> remember which one, but you can probably find it on his webpage)
Maybe your thinking about this [1]. It states that ocaml uses minimal
environments hence my second example shouldn't leak.
> Btw, it is called infix pointers, and there's a "infix" tag for
> OCaml block value.
If this corresponds to what is described in the same document. Then
the mutually recursive definitions should share the same environment.
Thanks,
Daniel
[1] http://pauillac.inria.fr/~xleroy/dea/compil/fermetures
prev parent reply other threads:[~2008-11-01 10:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-30 19:04 Daniel Bünzli
[not found] ` <4d1b2df20810301240o77e110cft6070c5cd0ad863b6@mail.gmail.com>
2008-10-30 19:58 ` [Caml-list] " Daniel Bünzli
[not found] ` <4d1b2df20810310346j7824c379udceff0517c6eac94@mail.gmail.com>
[not found] ` <265BA436-5079-47E2-862E-9A1CD15ECDCB@erratique.ch>
[not found] ` <4d1b2df20810310843k79ef135fn5deaa9632272dd97@mail.gmail.com>
2008-10-31 16:10 ` Daniel Bünzli
2008-10-31 21:17 ` Zheng Li
2008-11-01 10:40 ` Daniel Bünzli [this message]
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=407B87C2-1300-440F-9C40-A656CF2446C2@erratique.ch \
--to=daniel.buenzli@erratique.ch \
--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