caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Optional and mandatory labels with the same name in the same function ?
@ 2004-07-15 11:54 Berke Durak
  2004-07-15 14:11 ` Jacques GARRIGUE
  0 siblings, 1 reply; 4+ messages in thread
From: Berke Durak @ 2004-07-15 11:54 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-15 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-15 11:54 [Caml-list] Optional and mandatory labels with the same name in the same function ? Berke Durak
2004-07-15 14:11 ` Jacques GARRIGUE
2004-07-15 14:23   ` Richard Jones
2004-07-15 14:49     ` Jacques GARRIGUE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).