Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Markus Mottl <mottl@miss.wu-wien.ac.at>
To: Pierre.Weis@inria.fr (Pierre Weis)
Cc: caml-list@inria.fr (OCAML)
Subject: Re: cyclic value construction ("let rec")
Date: Mon, 10 Apr 2000 03:41:39 +0200 (MET DST)	[thread overview]
Message-ID: <200004100141.DAA30959@miss.wu-wien.ac.at> (raw)
In-Reply-To: <20000410020308.18555@pauillac.inria.fr> from "Pierre Weis" at Apr 10, 2000 02:03:08 AM

> This is perfectly right, and as always with mutable values, you cannot
> implement a feature without adding some safeguard conditions.
[snip] 
> type 'a loc = {mutable contents : 'a} as {contents : 'a};;
[snip]
> This view conception of type exportation could also be generalized to
> hide some other information about a type to export: hide some
> constructors or labels...

Oh, my - if I could already think as fast ahead...

This looks indeed not bad and wouldn't even clutter the language! Programs
with elaborate record fields would surely benefit - no more read
access functions required (saves work both in the implementation and
the interface!)...

I am now waiting for Xavier to use his feared backhand to play back the
ball with another overlooked problem... ;-)

Best regards,
Markus Mottl

-- 
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl



      reply	other threads:[~2000-04-11 17:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-30 20:12 Benoit Deboursetty
2000-04-03 12:57 ` Markus Mottl
2000-04-06 13:18   ` Pierre Weis
2000-04-06 13:34     ` Markus Mottl
2000-04-06 14:25       ` Xavier Leroy
2000-04-06 15:12         ` Markus Mottl
2000-04-10  0:03         ` Pierre Weis
2000-04-10  1:41           ` Markus Mottl [this message]

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=200004100141.DAA30959@miss.wu-wien.ac.at \
    --to=mottl@miss.wu-wien.ac.at \
    --cc=Pierre.Weis@inria.fr \
    --cc=caml-list@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