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 DAA27963; Fri, 28 Mar 2003 03:15:45 +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 DAA28219 for ; Fri, 28 Mar 2003 03:15:43 +0100 (MET) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id h2S2FgX24007 for ; Fri, 28 Mar 2003 03:15:42 +0100 (MET) Received: (qmail 87212 invoked from network); 28 Mar 2003 02:15:41 -0000 Received: from arda.pair.com (HELO compaqreview.d6.com) (209.68.1.133) by relay.pair.com with SMTP; 28 Mar 2003 02:15:41 -0000 X-pair-Authenticated: 209.68.1.133 Message-Id: <4.3.2.7.2.20030327180749.03282978@localhost> X-Sender: checker@localhost X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Thu, 27 Mar 2003 18:11:14 -0800 To: caml-list@inria.fr From: Chris Hecker Subject: Re: [Caml-list] naming parts of optional arguments? In-Reply-To: <8F4A019E-60BD-11D7-829E-000393BA7EBA@wetware.com> References: <4.3.2.7.2.20030327170847.04102fc0@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam: no; 0.00; hecker:01 checker:01 caml-list:01 woodyatt:01 val:01 chris:01 syntax:02 float:02 unit:03 wrote:03 arguments:03 let:04 0800,:04 wacky:05 0,0:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk James replied off list, but I thought the others might like to see it: At 17:35 3/27/2003 -0800, james woodyatt wrote: ># let f ?xy:(x,y as xy = 0.0,0.0) () = xy;; >val f : ?xy:float * float -> unit -> float * float = Ah, that's what I wanted, thanks! It looks like you can just do ?xy:(x,y = 0,0) and skip the "as xy" too. Wacky syntax...it looks like I should have looked in the pseudo-bnf before posting since it looks like this is in there. Thanks, Chris ------------------- 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