Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
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 15:16:01 +0200	[thread overview]
Message-ID: <20010528151601.B21783@pauillac.inria.fr> (raw)
In-Reply-To: <20010528150725.H13297@verdot.inria.fr>; from daniel.de_rauglaudre@inria.fr on Mon, May 28, 2001 at 03:07:25PM +0200

> > No, this would be unsound -- like all polymorphic references.
> 
> I know, and I knew perfectly your example, but for Lazy, it is
> different. The structure of this type is visible only because it is
> necessary for the "lazy" statement. Users are not supposed to change
> the reference value by hand.

OK, I see what you mean.  If "lazy e" had a special typing rule and a
special compilation rule -- instead of being expanded into
"ref (Lazy.Delayed (fun () -> e))" during parsing -- then it would be
safe to treat it as generalizable, indeed.

- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


  reply	other threads:[~2001-05-28 13:16 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
2001-05-28 13:07   ` Daniel de Rauglaudre
2001-05-28 13:16     ` Xavier Leroy [this message]
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=20010528151601.B21783@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