Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] naming parts of optional arguments?

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

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 looks like I should have 
looked in the pseudo-bnf before posting since it looks like this is in there.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: