Hacker News new | ask | show | jobs
by kragen 208 days ago
Function pointers in C++ are "objects", and the difference between static methods and C-style functions which are not methods seems purely syntactic to me, or at best a question of namespacing. Regardless, static methods are not objects either in Java or in C++, so that is also not a case of something being an "object" in Java and not in C++.
1 comments

> Function pointers in C++ are "objects"

In the C++ sense, but they don't have classes and don't participate in inheritance. Whereas the early-Java equivalents do.

Yes, I agree.