On Mon, Nov 10, 2003 at 10:26:19 +0530, nix wrote: > Hi Guys > Well as I was going through the sources and it struck me that that the > entire kernel is an implementation of the oops concepts on c. The concepts of > inheritannce, functional and data abstraction, data hiding, data given a > priority than functions i.e data encapsulated by functions etc....are applied > in c. So why dont they convert it to c++. Furthermore the designing and > implemantation would be enhanced with the various uml tools available. why c > and not c++ i dont understand? anyway as an attempt to understand the kernel > and to investigate this question i have begun to modify my kernel to an > object oriented one(c++ wise ). if anyone has strong arguements on why my > attempt may be or may NOT be rewarding, please let me know. IIRC it's in the FAQ. Generaly speaking: - C is considered a nicer language by many hackers (C++ is a lot^Wbit bloated). - In C, it's easier to see what is going on, which is important in kernel - C++ compilers used to generate worse code and are still commonly believed to do so. - Virtual methods are actualy weaker, than an explicit function table. The function table can be exchanged runtime (IIRC it's actualy used in kerel) -- VMT can't. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/