On 29/01/2019 5:02 am, Charles Mills wrote:
Also, note that while C++ appears very similar to C and is 99.9% a proper superset of C, it is a very different language conceptually, at least if used properly. I am not advocating for C (which IMHO offers few design advantages over the structured HLASM macros) but specifically for C++.
C++ comes with it 's own set of problems! It has deservedly gained a reputation for resource leaks due to the often misunderstood fact that destructors are not executed when an exception is thrown in a constructor. This is why the use of raw "new" operators is a code smell and should be carefully scrutinized. The RAII idiom has solved
this problem but there is still a lot of C++ code out there not using RAII. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN