From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA21088; Fri, 11 Jan 2002 19:04:02 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA20966 for caml-list@pauillac.inria.fr; Fri, 11 Jan 2002 19:04:01 +0100 (MET) 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 OAA14316 for ; Fri, 11 Jan 2002 14:01:00 +0100 (MET) Received: from ebene.inrialpes.fr (ebene.inrialpes.fr [194.199.18.70]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id g0BD10T23690 for ; Fri, 11 Jan 2002 14:01:00 +0100 (MET) Received: from pop-serv.inrialpes.fr (pop-serv.inrialpes.fr [194.199.18.66]) by ebene.inrialpes.fr (8.11.6/8.11.6) with ESMTP id g0BD0pk12760 for ; Fri, 11 Jan 2002 14:00:51 +0100 (MET) Received: from inrialpes.fr (cime.inrialpes.fr [194.199.23.76]) by pop-serv.inrialpes.fr (8.11.3/8.11.3/ImagV2) with ESMTP id g0BD0ob09058 for ; Fri, 11 Jan 2002 14:00:50 +0100 (MET) Message-ID: <3C3EE202.8C306B0B@inrialpes.fr> Date: Fri, 11 Jan 2002 14:00:50 +0100 From: Frederic Tronel X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Probleme avec des enregistrements Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Bonjour, J'utilise la version 3.04 de caml. Je veux utiliser des enregistrements dont certains des champs portent le meme nom. Cela ne fonctionne pas. Ainsi: ./ocaml Objective Caml version 3.04 # type t1={a:int ; b:int} ;; type t1 = { a : int; b : int; } # type t2 = {a:int} ;; type t2 = { a : int; } # {a=2} ;; - : t2 = {a = 2} # {a=1;b=2} ;; The record field label b belongs to the type t1 but is here mixed with labels of type t2 # Il n'y a pourtant aucune ambiguite sur le type de {a=1;b=2} ! Est-ce un bug connu ? Frederic Tronel. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr