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 QAA07532; Fri, 3 Aug 2001 16:52:04 +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 QAA07497 for ; Fri, 3 Aug 2001 16:52:03 +0200 (MET DST) Received: from dpt-info.u-strasbg.fr (dpt-info.u-strasbg.fr [130.79.44.193]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f73Eq2917301 for ; Fri, 3 Aug 2001 16:52:02 +0200 (MET DST) Received: (from luther@localhost) by dpt-info.u-strasbg.fr (8.9.3/8.9.3) id QAA13667; Fri, 3 Aug 2001 16:52:22 +0200 Date: Fri, 3 Aug 2001 16:52:22 +0200 From: Sven To: Willem Duminy Cc: caml-list@inria.fr Subject: Re: [Caml-list] == Message-ID: <20010803165222.A13622@dpt-info.u-strasbg.fr> References: <200108031453.f73ErmI16401@relay.mailbox.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200108031453.f73ErmI16401@relay.mailbox.co.za>; from wduminy@webmail.co.za on Fri, Aug 03, 2001 at 04:39:21PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Aug 03, 2001 at 04:39:21PM +0200, Willem Duminy wrote: > Hello, > Please explain to me why the following Caml Light declaration requires > a "==". > let 'a signiture == ('a * int) list;; > I am working through the book: "The functional Approach to > Programming" by Cousineau and Mauny. > Thank you for helping. because (in caml light) you are ddefining a type alias instead of a new type (as you would have down with type 'a sig = Sig of ('a * int) list for example). Now, this little restriction is no more there in ocaml. Friendly, Sven Luther ------------------- 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