|Syntactic Confectionery Delight|
[Win32, C, and way OT] C floats, doubles, and their equivalenceby syphilis (Canon)
|on Jul 18, 2009 at 15:43 UTC||Need Help??|
syphilis has asked for the
wisdom of the Perl Monks concerning the following question:
It doesn't get much more OT than this.
The demo C program:
Afaict, with any sane C compiler (including MSVC++ 8.0, MSVC++ 9.0, MinGW port of gcc-3.4.5, and gcc-3.2.2 on linux) that program will output "False True".
But with versions of MSVC++ prior to version 8.0, it outputs "False False".
I'm wondering if anyone knows of a workaround that will enable the correct output of "False True" with those earlier versions of MSVC++.
I posted this to comp.os.ms-windows.programmer.misc, and then realized that most posts there now go unanswered and that mine was the first post there in over 5 weeks ... I'm not at all hopeful of a useful response on that forum. Alternatively, if someone knows of a site where this subject is *not* OT, and where there's a good chance of an informed response, then that might also be helpful to me.
PS For anyone interested, it's not hard to create a script that is essentially the same yet produces the reverse output of "True False". (Again, this applies only to MSVC++ prior to version 8.0.) :
But that doesn't help me to solve my problem at all.
My problem is that this bug (as presented in the first script) is stuffing up one particular aspect of PDL when PDL is built using MSVC++ versions that pre-date version 8.0 - and that's what I'm trying to fix.