caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Chris King <colanderman@gmail.com>
To: Kurt Welgehausen <kwel@kwel.net>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Shallow copy of a record
Date: Sat, 22 Jan 2005 11:45:20 -0500	[thread overview]
Message-ID: <875c7e070501220845442bf88c@mail.gmail.com> (raw)
In-Reply-To: <41F2606F.mail1PL1TYIX5@kwel.net>

On Sat, 22 Jan 2005 08:17:19 -0600, Kurt Welgehausen <kwel@kwel.net> wrote:

> It's not clear whether you require a general polymorphic
> copy function or you just need to make a copy of a
> particular record.

Just the particular record.

> In the latter case, something like
> 
>   let y = {x with a = x.a}
> 
> will do what you want (even though it's not very pretty).

Yeah, that's what I thought of first; I was just hoping there was a
way to do it without the redundant assign (like {x} or something).


  reply	other threads:[~2005-01-22 16:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-22  4:27 Chris King
2005-01-22  6:49 ` [Caml-list] " Jacques Garrigue
2005-01-22 16:55   ` Chris King
2005-01-22 17:55     ` Michal Moskal
2005-01-22 20:08       ` Chris King
2005-01-22 14:17 ` Kurt Welgehausen
2005-01-22 16:45   ` Chris King [this message]
     [not found] ` <200501221059.28064.jon@jdh30.plus.com>
2005-01-22 17:03   ` Chris King

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=875c7e070501220845442bf88c@mail.gmail.com \
    --to=colanderman@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=kwel@kwel.net \
    /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;
as well as URLs for NNTP newsgroup(s).