From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr 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 8CC46BB83 for ; Sun, 11 Jun 2006 06:46:54 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k5B4krmp016042 for ; Sun, 11 Jun 2006 06:46:54 +0200 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 GAA18533 for ; Sun, 11 Jun 2006 06:46:53 +0200 (MET DST) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by nez-perce.inria.fr (8.13.6/8.13.6) with SMTP id k5B4korZ016014 for ; Sun, 11 Jun 2006 06:46:52 +0200 Received: (qmail 16324 invoked from network); 11 Jun 2006 04:46:48 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 11 Jun 2006 04:46:48 -0000 Received: from coltrane (localhost [127.0.0.1]) by coltrane.mega-nerd.net (Postfix) with SMTP id E74257B67 for ; Sun, 11 Jun 2006 14:46:38 +1000 (EST) Date: Sun, 11 Jun 2006 14:46:38 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: Syntax for partial copy of struct member Message-Id: <20060611144638.c7324cc2.ocaml-erikd@mega-nerd.com> In-Reply-To: <20060611143543.79e8d4eb.ocaml-erikd@mega-nerd.com> References: <20060611143543.79e8d4eb.ocaml-erikd@mega-nerd.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.17; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 448BA03D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 448BA03A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; syntax:01 struct:01 syntax:01 wrote:01 partial:01 strong:96 let:03 let:03 erik:04 erik:04 long:05 disagree:08 life:90 agree:11 between:12 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Erik de Castro Lopo wrote: > let y = { a = 2 ; (* b and c filled in from x *) } > > but I can't for the life of me remember the syntax. And as soon as I post to the list, I suddenly remember: let y = { x with a = 2 } Sorry for distrubing everyones weekend. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "There is only a small difference between a strong atheist and a Christian: they agree on a very long list of gods that don't exist, and disagree about only one of them."