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 VAA02489; Thu, 24 Jun 2004 21:56:14 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA02779; Thu, 24 Jun 2004 21:56:12 +0200 (MET DST) Received: from mail.davidb.org (adsl-64-172-240-129.dsl.sndg02.pacbell.net [64.172.240.129]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5OJuBSH002051; Thu, 24 Jun 2004 21:56:11 +0200 Received: from davidb by mail.davidb.org with local (Exim 3.36 #1 (Debian)) id 1BdaKO-0006VL-00; Thu, 24 Jun 2004 12:56:08 -0700 Date: Thu, 24 Jun 2004 12:56:08 -0700 From: David Brown To: John Hughes Cc: "'Xavier Leroy'" , "'caml-list'" Subject: Re: [Caml-list] Why must types be always defined at the top level? Message-ID: <20040624195608.GA24961@davidb.org> References: <20040624194553.A27745@pauillac.inria.fr> <20040624194603.2A91010EF06@clark.cs.brown.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040624194603.2A91010EF06@clark.cs.brown.edu> User-Agent: Mutt/1.5.4i X-Miltered: at concorde with ID 40DB31DB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 caml-list:01 2004:99 parens:01 val:01 bool:01 int:01 int:01 0200,:01 dave:03 wrote:03 types:03 types:03 let:04 let:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Jun 24, 2004 at 09:46:11PM +0200, John Hughes wrote: > defines a function applicable to ALL types? I actually *liked* > being able to say something like > > let f x y z:int = (x = y) && (y = z) You can, you just need parens: # let f x y (z:int) = (x = y) && (y = z) val f : int -> int -> int -> bool = Dave ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners