News for hackers. Stuff that matters.
Re:*(char*)0 = 0; - What Does the C++ Programmer Intend with... by gofixurcode on Wednesday October 18, 2023 @03:28PM (#37933562)
Ah a new standard! Perfect! Everyone will adopt this as clearly it is better and there’s no reason not to right? … right?
Re:*(char*)0 = 0; - What Does the C++ Programmer Intend with... by josefx on Wednesday October 18, 2023 @04:05PM (#37934061)
Well it should be backwards compatible if you just use NULL everywhere where it is appropriate, so you wouldn't even have to sprinkle ifdefs all over the place. Code that uses 0 all over the place would probably have to be updated with the help of compiler errors and a static code analyzer.