![]() ![]() However it's not necessary to use third party support to have OO in C. GObject provides a way of building objects in C. The best example that comes to mind is GObject, used by GLib, GTK+ and many projects unrelated to GNOME.It's not for mental exercise, it's a valid paradigm in C. As far as "is it really used", the answer is yes.Generally other languages provide syntactical sugar by automatically implying an instance variable and scoping in various properties of that instance automatically. If you provide functions to create, add, remove, and find elements of the data structure it's OO. ![]() Take for example, you decide to create a data structure. Generally I don't agree with the opinion that one cannot do OOP in C, as soon as you provide set of functions that operate on a given type you have OOP. K&R, Accelerated C++, Algorithm in C++ and some other books are my attempt to to improve my skills. So I picked up the books again and start studying them properly. But then Joel's blog and SO made me realize that I lack in a lot many things. ![]() I finished C, C++, Java and OOP theory about a year ago, have got a job too. I think its appropriate that I mention my background here so that you guys can guide me in a better way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |