Re: [Caml-list] Problem with Arg.Tuple

2012-03-13 Thread Gabriel Cardoso
Thanks, I get it now ! Cheers Gabriel 2012/3/13 Samuel Hornus > > On Mar13, 2012, at 11:49 , Gabriel Cardoso wrote: > > > Dear list, > > > > I have empty arguments when using Arg.Tuple with references. This > minimalist example illustrates my problem : > > > > let f a b = > > print_endline a

Re: [Caml-list] Problem with Arg.Tuple

2012-03-13 Thread Samuel Hornus
On Mar13, 2012, at 11:49 , Gabriel Cardoso wrote: > Dear list, > > I have empty arguments when using Arg.Tuple with references. This minimalist > example illustrates my problem : > > let f a b = > print_endline a; > print_endline b > > let s = ref "" > > let speclist = [( > "-a", > Arg.

[Caml-list] Problem with Arg.Tuple

2012-03-13 Thread Gabriel Cardoso
Dear list, I have empty arguments when using Arg.Tuple with references. This minimalist example illustrates my problem : let f a b = print_endline a; print_endline b let s = ref "" let speclist = [( "-a", Arg.Tuple [ Arg.Set_string s; Arg.String (f !s) (* !s is empty !!! *)