Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Pascal Brisset <brisset@recherche.enac.fr>
To: Pierre Weis <Pierre.Weis@inria.fr>
Cc: Christophe.Raffalli@univ-savoie.fr, Donald.Syme@cl.cam.ac.uk,
	caml-list@pauillac.inria.fr
Subject: Re: Non-destructive record update??
Date: Thu, 16 Apr 1998 16:47:28 +0200	[thread overview]
Message-ID: <199804161447.QAA31434@indigo.recherche.enac.fr> (raw)
In-Reply-To: <199804161419.QAA16455@pauillac.inria.fr>

Pierre Weis writes:
> We propose the notation {expr with label1 = e1; lable2 = e2 ... } to
> mean the record returned by the expression expr with fields label1,
> label2, ... set to values e1, e2, ...

 Is it a good idea to ``hide'' the copy of one object behind a simple
keyword ? I think such operation should be more explicit. Something with
the 'new' keyword like

	new expr with {label1 = e1; lable2 = e2 ... }

makes things a bit clearer.

 Anyway, a function Record.copy would be enough !

--Pascal





  reply	other threads:[~1998-04-20 14:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-09 15:02 Caml sur Rhapsody Pierre Weis
1998-04-14 23:27 ` Non-destructive record update?? Donald Syme
1998-04-25 11:26   ` Christophe Raffalli
1998-04-16 14:19     ` Pierre Weis
1998-04-16 14:47       ` Pascal Brisset [this message]
1998-04-17  0:26       ` 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=199804161447.QAA31434@indigo.recherche.enac.fr \
    --to=brisset@recherche.enac.fr \
    --cc=Christophe.Raffalli@univ-savoie.fr \
    --cc=Donald.Syme@cl.cam.ac.uk \
    --cc=Pierre.Weis@inria.fr \
    --cc=caml-list@pauillac.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