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 KAA06091; Wed, 19 Sep 2001 10:57:53 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 KAA06253 for ; Wed, 19 Sep 2001 10:57:52 +0200 (MET DST) Received: from smtprt15.wanadoo.fr (smtprt15.wanadoo.fr [193.252.19.210]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f8J8vV119125 for ; Wed, 19 Sep 2001 10:57:49 +0200 (MET DST) Received: from villosa.wanadoo.fr (193.252.19.122) by smtprt15.wanadoo.fr; 19 Sep 2001 10:57:18 +0200 Received: from debian (213.56.52.58) by villosa.wanadoo.fr; 19 Sep 2001 10:56:43 +0200 Received: from moi by debian with local (Exim 3.32 #1 (Debian)) id 15jd9z-0000Hv-00 for ; Wed, 19 Sep 2001 10:56:47 +0200 To: caml-list@inria.fr Subject: Re: [Caml-list] Polymorphic variant abbreviations References: From: Remi VANICAT Date: 19 Sep 2001 10:56:47 +0200 In-Reply-To: Message-ID: <87y9nbo8xc.dlv@wanadoo.fr> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.105 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Patrick M Doane writes: > (* The first works as I would expect, the second gives a very unexpected > type. There seems to be some kind of unexpected unification going on > between terms. *) > > let h1 (#b as x1) (#c as x2) = `A [x1; x2] > let h2 (x1 : #b) (x2 : #c) = `A [x1; x2] > there is unification, a list can only contain item of same type. -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- 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