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 CAA27494; Fri, 28 Mar 2003 02:46:05 +0100 (MET) 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 CAA26551 for ; Fri, 28 Mar 2003 02:46:03 +0100 (MET) Received: from viola.sinor.ru (viola.sinor.ru [217.70.106.9]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h2S1k2X23138 for ; Fri, 28 Mar 2003 02:46:02 +0100 (MET) Received: from sibnet.ru (tlg5-ppp74.sibnet.ru [217.70.116.74]) by viola.sinor.ru (8.12.8/8.12.8) with ESMTP id h2S1jxIN022024 for ; Fri, 28 Mar 2003 07:45:59 +0600 Received: by sibnet.ru id m18yiuA-001En2C; Fri, 28 Mar 2003 07:43:38 +0600 (NOVT) Date: Fri, 28 Mar 2003 07:43:38 +0600 From: Max Kirillov To: caml-list@inria.fr Subject: Re: [Caml-list] naming parts of optional arguments? Message-ID: <20030328074338.A710@max.home> Mail-Followup-To: caml-list@inria.fr References: <4.3.2.7.2.20030327170154.04599ef8@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4.3.2.7.2.20030327170154.04599ef8@localhost>; from checker@d6.com on Thu, Mar 27, 2003 at 05:05:17PM -0800 X-Sender: Max X-Spam: no; 0.00; kirillov:01 caml-list:01 hecker:01 val:01 chris:01 int:01 unit:03 wrote:03 argument:03 arguments:03 let:04 0800,:04 max:06 0,0:07 fun:08 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Mar 27, 2003 at 05:05:17PM -0800, Chris Hecker wrote: > > Is there a way to name the components of an optional argument? # let f ?xy:((x,y)=0,0) () = x+y;; val f : ?xy:int * int -> unit -> int = # f ();; - : int = 0 # f ~xy:(1,2) ();; - : int = 3 -- Max ------------------- 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