02-04-2016, 06:49 AM
(02-03-2016, 07:16 PM)Someone else Wrote: Well C++ does, but I would agree that integer to conversions are not a good idea. Pointers are usually fine in my experience.C++ -from my pov- is not a modern language, and at this point it cannot be (for compatibility reasons). Yes, it's evolving and gathering many modern features but the language itself is not (and that you know it's originating from 80-90s).
(02-03-2016, 07:16 PM)Someone else Wrote: The way GCC and Clang deals with the dreaded if(a = b) problem is warning if you don't put add an extra set of parentheses:But I don't think A-Man is going to implement warning system :D
C++-Code:if(a = b){ /* ... */ }//warning if((a = b)){ /* ... */ }//ok
So far I have not seen a case where that has not caught a bug where the programmer meant == instead of =.
Ultimately, my constant dissatisfaction with the way things are becomes the driving force behind everything I do.
LF2 IDE - Advanced visual data changer featuring instant data loader
LF2 Sprite Sheet Generator - Template based sprite sheet generator based on Gad's method
There is no perfect language, but C++ is the worst.
LF2 IDE - Advanced visual data changer featuring instant data loader
LF2 Sprite Sheet Generator - Template based sprite sheet generator based on Gad's method
There is no perfect language, but C++ is the worst.