From: Martin Jambon <martin.jambon@ens-lyon.org>
To: Guillaume Hennequin <guillaume.hennequin@epfl.ch>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] let x = ... in object ...
Date: Tue, 26 May 2009 15:30:36 +0200 [thread overview]
Message-ID: <4A1BEEFC.9010301@ens-lyon.org> (raw)
In-Reply-To: <d8e32b760905260606x1c4fed2do1361ff4ae289be6f@mail.gmail.com>
Guillaume Hennequin wrote:
>
>
>
> # class a = let () = print_endline "hello" in object end;;
> hello
> class a : object end
>
>
> Maybe you mean the following:
>
>
> ?
I was just pointing out that "class a = let x = ... in object ... end"
creates x once and for all when the class is defined, and x will therefore not
be GC'ed because of the language definition, not because of its implementation.
Martin
--
http://mjambon.com/
next prev parent reply other threads:[~2009-05-26 13:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-26 12:20 Guillaume Hennequin
2009-05-26 12:41 ` [Caml-list] " Martin Jambon
2009-05-26 13:06 ` Guillaume Hennequin
2009-05-26 13:30 ` Martin Jambon [this message]
2009-05-27 1:46 ` Jacques Garrigue
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=4A1BEEFC.9010301@ens-lyon.org \
--to=martin.jambon@ens-lyon.org \
--cc=caml-list@inria.fr \
--cc=guillaume.hennequin@epfl.ch \
/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