Version française
Home     About     Download     Resources     Contact us    
Browse thread
let rec and environment sharing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Zheng Li <zheng_li@u...>
Subject: Re: let rec and environment sharing
Hi

Daniel Bünzli wrote:
> Hello,
> 
> Is the closure's environment of definitions introduced by let rec shared 
> between the definitions ?

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)

  - I did encounter this encoding when implementing Vprint

Btw, it is called infix pointers, and there's a "infix" tag for OCaml 
block value.

HTH.

--
Zheng