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
Arg.spec and option types
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-22 (20:32)
From: Sam Steingold <sds@g...>
Subject: Re: Arg.spec and option types
Nicolas barnier wrote:
> I think it would therefore be quite useful to add 
> Set_option_{string|int|float}
> constructors which would expect {string|int|float} option ref values as
> arguments (usually initialized with None). Do others think the same or use
> some other workaround to obtain this behaviour ?

It is nice to know that I am not the only one who is writing
  Arg.String (fun s -> foo := Some s)
all the time.