Skip to main content
6 events
when toggle format what by license comment
Sep 16, 2014 at 22:12 comment added thb @HarryJohnston: You might be thinking from my answer that I disagreed, but I actually agree with you, completely for what it's worth.
Sep 16, 2014 at 20:49 comment added Deduplicator @HarryJohnston: I already mentioned the question I often link to when I mention UB. The accepted answer has a good explanation for what UB might mean, for writing to constant literals, and why there are so completely disparate results. That might serve.
Sep 16, 2014 at 3:57 comment added Harry Johnston I'm inclined to think that it isn't sensible to try to explain the theory behind UB in each and every relevant question. Is there, or should there be, a canonical question we can link to?
Sep 15, 2014 at 19:08 comment added thb For what it's worth: I taught a one-semester C++-programming course to electrical-engineering undergraduates for four years. Naturally, my students were a specialized audience, but I had better success with my C++ students than I did with students in other courses I taught like electrical theory and electromagnetics. The reason for the success, I believe, is that we explained practically everything in the course using a stack or stack/heap diagram on the chalkboard. That's all about undefined behavior in a way, but you see, you can think about C++ that way. It works quite well.
Sep 15, 2014 at 18:17 history edited thb CC BY-SA 3.0
deleted 8 characters in body
Sep 15, 2014 at 18:06 history answered thb CC BY-SA 3.0