Hacker News new | ask | show | jobs
by unwind 559 days 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. :(

2 comments

I 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.

Writing C code so won't compile with a C++ compiler is gods work.

Because C++ is why C can't have nice things.

I don't think you can be downvoted, there's no downvote button
A beautiful example of Cunningham's Law! :)
Users with enough karma can downvote comments.