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 CAA26425; Fri, 28 Mar 2003 02:09:51 +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 CAA26625 for ; Fri, 28 Mar 2003 02:09:50 +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 h2S19mX21427 for ; Fri, 28 Mar 2003 02:09:49 +0100 (MET) Received: (qmail 75638 invoked from network); 28 Mar 2003 01:09:47 -0000 Received: from arda.pair.com (HELO compaqreview.d6.com) (209.68.1.133) by relay.pair.com with SMTP; 28 Mar 2003 01:09:47 -0000 X-pair-Authenticated: 209.68.1.133 Message-Id: <4.3.2.7.2.20030327170154.04599ef8@localhost> X-Sender: checker@localhost X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Thu, 27 Mar 2003 17:05:17 -0800 To: caml-list@inria.fr From: Chris Hecker Subject: [Caml-list] naming parts of optional arguments? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam: no; 0.00; hecker:01 checker:01 val:01 chris:01 syntax:02 unit:03 argument:03 arguments:03 let:04 fun:08 components:08 naming:09 characters:14 there:16 name:78 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is there a way to name the components of an optional argument? # let f ((x,y) as xy) = xy;; val f : 'a * 'b -> 'a * 'b = # let f ?xy () = xy;; val f : ?xy:'a -> unit -> 'a option = # let f ?((x,y) as xy) () = xy;; Characters 8-9: let f ?((x,y) as xy) () = xy;; ^ Syntax error 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