From: Nicolas C. <war...@fr...> - 2004-12-24 12:01:17
|
> How would people feel about having release and debug builds of ExtLib? > The release would have assertions turned off. This is basically the > same as the current release version. The debug build would always have > assertions on and thus be slower. However, it would only be used for > testing purposes. It's not so easy. Let's take a blit for example, you might not want to put assert before every blit call so you will write a blit stub that does asserts before directly calling blit, and I'm not sure ocamlopt can inline such method easily. We should not modify the source code of ExtLib for testing, since testing purpose is actually to detect wrong behavior. Having separate tests is ok for me, but if we need to add also tests inside extLib sources (assert) that make twice the same somehow. If there is some overflow problems we can detect them with appropriate testing (for example run a GC major after every call ). Nicolas Cannasse |