Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Optional and mandatory labels with the same name in the same function ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Berke Durak <durak@l...>
Subject: [Caml-list] Optional and mandatory labels with the same name in the same function ?
Has the following any use, and if not, shouldn't Ocaml better give a
warning ?

# let f ?gogo ~gogo () = 33;;
val f : ?gogo:'a -> gogo:'b -> unit -> int = <fun>

(This actually happened in some LablGtk-using code with ?packing ~packing).
-- 
Berke Durak

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