3 ms·
That's an interesting idea. It would allow unit tests to check what breaks under different precision settings. It could probably be emulated in C++ with user d
by ableal 12y ago
That's an interesting idea. It would allow unit tests to check what breaks under different precision settings.
It could probably be emulated in C++ with user defined types and overloaded operators. In C one could go the other way - '#define double float' and see if it breaks sooner ...
- amelius 12y agoUnfortunately, in reality it is a lot more complicated than replacing a define or typedef, especially when using external libraries, where some of them are written in e.g. Fortran.