Talk:Testing
From Buzztard
[edit] Type sanity
About type checking, isn't it possible to use the typesafe c++ static_cast rather than C's reinterpret_cast? I know this project is supposed to be coded in C, but it's just a matter of renaming the .c files to .cpp and modifying a few things in autoconf and automake files to be able to use any language extension from c++ that appears to be useful.
Its not that easy, as linking c and cpp can cause some troubles. Anyway the gobject based cast are type-safe. Its just that they are evaluated at runtime and not at compile time. The runtime checking can be switched of for a release build. --ensonic 23:48, 25 Jul 2005 (CEST)



