16 ms·
You need to understand so much about C to even talk about pointers in C++, and everything related to them, it's not funny. RAII -> Why? nullptr vs. NULL -> Why
by throwawayaway 12y ago
You need to understand so much about C to even talk about pointers in C++, and everything related to them, it's not funny.
RAII -> Why? nullptr vs. NULL -> Why? Pointers -> Why? Don't use them in a certain way -> Why?
The answer in all cases is C.
- pjmlp 12y agoNo, they are C++ pointers. There are endless languages that have pointers, no need to talk anything about C.
- coldtea 12y ago>The answer in all cases is C. Starting to sound like a broken record. No, the answer in all cases can also be found in C++, and understood in C++ terms alone. C++ is a SUPERSET of C, not just an arbitrary language + C.
- throwawayaway 12y agocheers for the broken record warning. i will now abstain from further conversation - i will leave you with this - i don't care to read your answer in case i have to respond and you might have to deal with some more repetition: using the language of sets, the set of C++ minus the set of C, with what is now left: how can you explain the things i have listed?
- deleted 12y ago[deleted]
- coldtea 12y ago>how can you explain the things i have listed? As evolution within the same language. Inconsistent ideas ironed out for more uniform and safer handling. A lot of used languages have similar historical warts... How do you explain "var" in JS, when "let" exists?