If you need to do OOP in C, it's time to move to a more powerful language.
As long as is not C++...
11–20 of 95 posts
If you need to do OOP in C, it's time to move to a more powerful language.
As long as is not C++...
If you need to do OOP in C, it's time to move to a more powerful language.
"If you need to do OOP in C, it's time to move to a more powerful language." As long as is not C++...
Earlier quoted context omitted.
"If you need to do OOP in C, it's time to move to a more powerful language." As long as is not C++...
C++ has plenty of issues, but it's really not that bad, especially modern C++. It's a huge language with tons of features, many of which you'll never use, but as far as writing C++, really not that bad. I've written a lot of C++ over the years, and I've also written a lot of vanilla C. I can tell you that you can definitely get a new project up and running much faster in C++ than in C.
If you need to do OOP in C, it's time to move to a more powerful language.
I think this approach is working too hard to realize Virtual Tables and Virtual Pointers. Another, different implementation is to define an array of function pointers, one function per method implemented, and then extend the array per subclass; each child class fills in its own or parents function pointers at init time.
If you need to do OOP in C, it's time to move to a more powerful language.
"If you need to do OOP in C, it's time to move to a more powerful language." As long as is not C++...
Of course, so is D...
Earlier quoted context omitted.
"If you need to do OOP in C, it's time to move to a more powerful language." As long as is not C++...
C++ has plenty of issues, but it's really not that bad, especially modern C++. It's a huge language with tons of features, many of which you'll never use, but as far as writing C++, really not that bad. I've written a lot of C++ over the years, and I've also written a lot of vanilla C. I can tell you that you can definitely get a new project up and running much faster in C++ than in C.
Throwing Rust into the pool