Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] naming parts of optional arguments?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] naming parts of optional arguments?
From: Chris Hecker <checker@d6.com>
Subject: Re: [Caml-list] naming parts of optional arguments?
Date: Mon, 28 Jul 2003 09:35:15 -0700

> 
> >No contradiction at all: ?xy: is a label, not a variable name.
> 
> Well, except for in this case, of course, when it is a variable name:
> 
> # let f ?xy () = xy;;
> val f : ?xy:'a -> unit -> 'a option = <fun>

Where do you see a ?xy: in the above source code?
?xy is a shorthand for ?xy:xy, as explained in the manual.
xy is the variable, not ?xy:.

Jacques Garrigue

-------------------
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