From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 70AC5BB91 for ; Sat, 22 Jan 2005 05:27:38 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0M4RcpM001158 for ; Sat, 22 Jan 2005 05:27:38 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id FAA06442 for ; Sat, 22 Jan 2005 05:27:37 +0100 (MET) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0M4RaGa001155 for ; Sat, 22 Jan 2005 05:27:37 +0100 Received: by wproxy.gmail.com with SMTP id 71so186101wra for ; Fri, 21 Jan 2005 20:27:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=lVsDfa/PliVcq91XkSskY9nB2foRo79P1NBKASoOCdcKDwCPVNae+eLBoPij8Gu0Eqlis4/G5hl39SWLNcii94Gn4kJnsjG9n52Kii4Bproo6Y39zm2smlUtn15S6P+szczkRMhFRA+FLwI7JUOuk3BKTQBOTSKTNXtSzXcvBR8= Received: by 10.54.5.25 with SMTP id 25mr306764wre; Fri, 21 Jan 2005 20:27:34 -0800 (PST) Received: by 10.54.5.8 with HTTP; Fri, 21 Jan 2005 20:27:34 -0800 (PST) Message-ID: <875c7e0705012120277c090ec8@mail.gmail.com> Date: Fri, 21 Jan 2005 23:27:34 -0500 From: Chris King Reply-To: Chris King To: "O'Caml Mailing List" Subject: Shallow copy of a record Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 41F1D63A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41F1D639.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; foo:01 modifying:02 construct:02 construct:02 objects:02 chris:05 docs:05 maybe:07 create:12 create:12 but:12 but:12 assignment:14 record:15 record:15 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.0 X-Spam-Level: Maybe I missed it in the docs, but is there a way to create a shallow copy of a record without modifying any of its contents? I know there's the {foo with a=b} construct, but this only works with at least one assignment; I want to create an unmodified copy of the record (akin to the {< >} construct for objects). Thanks!