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 EAA01809; Thu, 22 Aug 2002 04:05:21 +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 EAA01674 for ; Thu, 22 Aug 2002 04:05:20 +0200 (MET DST) Received: from slave-dog.naughtydog.com (naughtydog200.brandx.net [209.55.75.200]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id g7M25Hn08697 for ; Thu, 22 Aug 2002 04:05:18 +0200 (MET DST) Received: from SMTP agent by mail gateway Wed, 21 Aug 2002 19:20:23 -0800 Received: from katn-dog (engstad@katn-dog.naughtydog.com [10.0.0.90]) by slave-dog.naughtydog.com (SGI-8.9.3/8.9.3) with ESMTP id TAA41160; Wed, 21 Aug 2002 19:20:06 -0700 (PDT) Content-Type: text/plain; charset="iso-8859-1" From: Pal-Kristian Engstad Organization: Naughty Dog, Inc. To: Oleg , Oliver Bandel , caml-list@inria.fr Subject: Re: [Caml-list] Calling a function with a self-defined type as argument Date: Wed, 21 Aug 2002 19:20:09 -0700 User-Agent: KMail/1.4.2 References: <200208220149.VAA14728@dewberry.cc.columbia.edu> In-Reply-To: <200208220149.VAA14728@dewberry.cc.columbia.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208211920.09550.engstad@naughtydog.com> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I don't know if it is in the FAQ, but a more interesting question is why the compiler cannot deduce the correct type without us having to type in parenthesis, at least in cases where there can be no ambiguity. I.e.: let addone x = x + 1 let double x = x * x let f x = addone double x (*** Should the compiler not deduce this? ***) let g = addone double (*** Is this why? ***) PKE. ------------------- 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