From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1D66DBB91 for ; Sat, 22 Jan 2005 21:08:43 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j0MK8g1n020042 for ; Sat, 22 Jan 2005 21:08:42 +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 VAA01121 for ; Sat, 22 Jan 2005 21:08:42 +0100 (MET) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0MK8fIj016651 for ; Sat, 22 Jan 2005 21:08:42 +0100 Received: by wproxy.gmail.com with SMTP id 50so103813wri for ; Sat, 22 Jan 2005 12:08:40 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=LwL+mKnsmH0k1+/bvl/QErs7YvOughpmYgnUN/I6EfUdq/S4hXwZi6loFd/ZFBQDeZYWa7+2dTgJZyJH+zmPOH+u1w4s8m3+Hv5pe0TFR6anjVatabYesYD36k5qQHrF721+VLlPX2mMzQgNooab3LzfkVM7+ygmKzackz80n04= Received: by 10.54.10.45 with SMTP id 45mr188242wrj; Sat, 22 Jan 2005 12:08:40 -0800 (PST) Received: by 10.54.5.8 with HTTP; Sat, 22 Jan 2005 12:08:40 -0800 (PST) Message-ID: <875c7e0705012212084b02b76e@mail.gmail.com> Date: Sat, 22 Jan 2005 15:08:40 -0500 From: Chris King Reply-To: Chris King To: Michal Moskal Subject: Re: [Caml-list] Shallow copy of a record Cc: caml-list@inria.fr In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <875c7e0705012120277c090ec8@mail.gmail.com> <20050122.154909.132744958.garrigue@math.nagoya-u.ac.jp> <875c7e070501220855a997f7e@mail.gmail.com> X-Miltered: at concorde with ID 41F2B2CA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41F2B2C9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 michal:01 moskal:01 michal:01 moskal:01 wrote:01 foo:01 foo:01 let:03 let:03 chris:05 suppose:05 assign:05 okay:07 cases:08 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: On Sat, 22 Jan 2005 18:55:40 +0100, Michal Moskal wrote: > No, consider: > > let copy foo = {foo with a = b} > > and now, if there were no assign: > > let copy foo = {foo} > > what should be the type of copy? Ah okay, I didn't think about that. But I suppose in cases like that, the type could be forced, as in "let copy foo = { (foo:bar) }".