caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Assert fail in partial application
@ 2004-06-10  8:43 Diego Olivier Fernandez Pons
  2004-06-10  9:05 ` Basile Starynkevitch [local]
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Diego Olivier Fernandez Pons @ 2004-06-10  8:43 UTC (permalink / raw)
  To: caml-list

    Bonjour,

I would like a function that contains an assert to fail in partial
application and the test are still removed when compiling in noassert
mode

# let f = fun x y -> assert (x > 0); assert (y > 0); x + y
val f : int -> int -> int
# f 0;;
- : int -> int = <fun>
# f 0 0;;
Exception: Assert_failure (" ", 1, 19).

        Diego Olivier



-------------------
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] 10+ messages in thread

end of thread, other threads:[~2004-06-17 13:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-10  8:43 [Caml-list] Assert fail in partial application Diego Olivier Fernandez Pons
2004-06-10  9:05 ` Basile Starynkevitch [local]
2004-06-10  9:15   ` Diego Olivier Fernandez Pons
2004-06-10 15:04     ` Richard Jones
2004-06-17  8:32   ` Jean-Christophe Filliatre
2004-06-17 13:13     ` Damien Doligez
2004-06-10  9:05 ` Benjamin Monate
2004-06-10  9:10 ` Olivier Andrieu
2004-06-10  9:10 ` Christophe TROESTLER
2004-06-10 20:56 ` Brian Hurt

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