4 ms·
Aha, so it doesn't know about void* being compatible with all (object) pointers, but so far just requires the pointers to match exactly? I see. Not sure why I
by unwind 2y ago
Aha, so it doesn't know about void* being compatible with all (object) pointers, but so far just requires the pointers to match exactly? I see.
Not sure why I was down-voted, I think that is ... not nice. :(
- nar001 2y agoI don't think you can be downvoted, there's no downvote button
- hollerith 2y agoUsers with enough karma can downvote comments.
- quuxplusone 2y agoA beautiful example of Cunningham's Law! :)
- dataflow 2y agoI downvoted just because I thought it wasn't great advice. It makes the code incompatible with C++ compilers, and being able to compile C with C++ compiler is often useful. Also... it felt kind of... unnecessary? to tell someone who is making a compiler how to write basic code in the language they're writing a compiler for. It almost felt like telling an overweight medical student/doctor that he should avoid eating fatty foods.
- Gibbon1 2y agoWriting C code so won't compile with a C++ compiler is gods work. Because C++ is why C can't have nice things.