From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Lazy.Value
Date: Mon, 28 May 2001 14:53:13 +0200 [thread overview]
Message-ID: <20010528145313.F19801@pauillac.inria.fr> (raw)
In-Reply-To: <20010528144620.G13297@verdot.inria.fr>; from daniel.de_rauglaudre@inria.fr on Mon, May 28, 2001 at 02:46:20PM +0200
> I may say nonsense, but is it possible to generalize things like:
> ref (Lazy.Value [])
No, this would be unsound -- like all polymorphic references.
let r = ref (Lazy.Value []) in
r := Lazy.Value [1];
match !r with [f] -> f 0 (*crash*)
- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-05-28 12:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-28 12:46 Daniel de Rauglaudre
2001-05-28 12:53 ` Xavier Leroy [this message]
2001-05-28 13:07 ` Daniel de Rauglaudre
2001-05-28 13:16 ` Xavier Leroy
2001-05-28 13:43 ` Daniel de Rauglaudre
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=20010528145313.F19801@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=daniel.de_rauglaudre@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