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 03F90BB81 for ; Sat, 12 Nov 2005 11:54:57 +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 jACAsuGw011615 for ; Sat, 12 Nov 2005 11:54:56 +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 LAA15379 for ; Sat, 12 Nov 2005 11:54:56 +0100 (MET) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jACAst1r011612 for ; Sat, 12 Nov 2005 11:54:56 +0100 Received: from [192.168.9.50] (did75-12-82-236-3-6.fbx.proxad.net [82.236.3.6]) by smtp6-g19.free.fr (Postfix) with ESMTP id A436D95F9 for ; Sat, 12 Nov 2005 11:54:55 +0100 (CET) Message-ID: <4375CAC8.5030803@aist.enst.fr> Date: Sat, 12 Nov 2005 11:58:16 +0100 From: Florent User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] strange behavior with record type definition References: <43752259.80800@aist.enst.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4375CA00.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4375C9FF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 compiler:01 ...:98 2005,:98 wrote:01 wrote:01 faq:01 faq:01 define:01 jambon:01 defined:01 caml:02 surcharge:02 labels:02 types:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Mmhh, why do we have to use differents label names in distinct record types ? It makes record types not easy to use when a lot of them are needed ... Martin Jambon wrote: > On Fri, 11 Nov 2005, Florent wrote: > >> Hi, I have defined two distinct record's types with a field's name in >> common. But when I try to define a function that uses the first of >> the types, the compiler gives me a type error. >> How can I use my first type in a function ?? > > > The answer is there: > http://pauillac.inria.fr/caml/FAQ/FAQ_EXPERT-eng.html#labels_surcharge > > > Martin >