From: Warren Harris <warren@metaweb.com>
To: Martin Jambon <martin.jambon@ens-lyon.org>
Cc: "Stéphane Glondu" <steph@glondu.net>, OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] lazy vs fun
Date: Mon, 24 Aug 2009 16:33:13 -0700 [thread overview]
Message-ID: <328F8198-C9E5-4F19-8D44-F175D804E4DD@metaweb.com> (raw)
In-Reply-To: <4A931E3B.4010501@ens-lyon.org>
On Aug 24, 2009, at 4:11 PM, Martin Jambon wrote:
>
> Oops.
> The following makes it possible for f to be garbage-collected:
>
[...]
If I understand correctly, the closure associated with f will be
collectable after the lazy_t is forced, whereas before its lifetime
would be bound to the lifetime of the lazy_t. That's very subtle. It
would have taken me some time to track that one down if it had come up
in practice. Thanks,
Warren
next prev parent reply other threads:[~2009-08-24 23:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-24 21:57 Warren Harris
2009-08-24 22:04 ` [Caml-list] " Jake Donham
2009-08-24 22:15 ` Warren Harris
2009-08-24 22:18 ` Jake Donham
2009-08-24 22:06 ` Stéphane Glondu
2009-08-24 22:19 ` Martin Jambon
2009-08-24 23:11 ` Martin Jambon
2009-08-24 23:33 ` Warren Harris [this message]
2009-08-25 5:19 ` rixed
2009-08-25 6:29 ` David Allsopp
2009-08-25 18:09 ` rixed
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=328F8198-C9E5-4F19-8D44-F175D804E4DD@metaweb.com \
--to=warren@metaweb.com \
--cc=caml-list@inria.fr \
--cc=martin.jambon@ens-lyon.org \
--cc=steph@glondu.net \
/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