Quote:Original post by SiCrane
Quote:Original post by MaulingMonkey
Generally speaking, though, that's hardly an argument to use math.h everywhere, or to argue against avoiding math.h where possible.
And I never said to use math.h everywhere. As you may not have noticed, what I actually said "Unless you want the functions in the global namespace in addition to the std namespace, in which case you would use math.h."
This brings up a point I missed: Just using math.h won't put them in the global namespace "in addition" to the std namespace. It will put them into the global namespace
only (at least in practice, I can cite the example of MSVC2k8), not that this affects either of our arguments.
Quote:There are cases where it is desirable, or even necessary such as dealing with legacy code or code that you want to be portable. Whether you like it or not, in the real world people have to write code for platforms with deficient compilers, and using math.h is far more portable than using cmath, deprecated or not, even for new code.
Now you're beginning to have something resembling an actual point. Good job! Now explain why a newbie should start working with deficient tools for an already deficient language, thus establishing why that point justifies him catering to those tools.
Quote:If you don't believe me, try submitting patches for existing cross-platform open source projects to use cmath, cstdio, etc. and the std namespace rather than math.h, stdio.h and the root namespace and watch as the platform targets fail to build.
You were talking about pointless causes? [lol]
Seriously though, feel free to give some examples where you've done this. Most of them will be using the GNU toolchain for all platforms which means they have a working C++ implementation, no? But I assume you've encountered this problem in the past...
Quote:Quote:Original post by MaulingMonkey
Because words censored to the point of only being identifiable as a continuous verb with a 4 letter root are so vulgar.
Quote:Original post by MaulingMonkey
Pretty unlikely, but that's a poor excuse for using deprecated things for no other purpose than to shit all over the root namespace.
That doesn't look censored to me.
My apologies. It seemed clear you were referring to my latest post at that time. I was mistaken.
Quote:Let's say your censored verb there was just an added example of what seems like an indication that you would rather rely on shock value than arguments that stand up in the real world.
You're entitled to make whatever assumptions you like. Any more ad hominem you'd like to share?
Quote:If you think that stating that is insulting your intelligence,
No, the whole treating-at-all-semi-seriously-even-as-an-intentionally-absurd-example the suggestion of rewriting working code under the guise of some sort of attempt to reach standardese nirvana with nanopie in the sky is what is insulting. I have to say, repeating the suggestion in the rest of the paragraph I quoted in your "apology" is what we call "especially smooth".
[Edited by - MaulingMonkey on June 27, 2008 11:53:55 PM]