On Wed, 07 Sep 2005 00:20:11 +0200, Esben Nielsen said: > Which is too bad. You can do stuff much more elegant, effectively and > safer in C++ than in C. Yes, you can do inheritance in C, but it leaves > it up to the user to make sure the type-casts are done OK every time. You > can with macros do some dynamic typing, but not nearly as effectively as > with templates, and those macros always comes very, very ugly. (Some say > templates are ugly, but they first become ugly when they are used > way beyond what you can do with macros.) > > I think it can only be a plus to Linux to add C++ support for at least > out-of-mainline drivers. Adding drivers written in C++ into the mainline > is another thing. http://www.tux.org/lkml/#s15-3 Why don't we rewrite the Linux kernel in C++?
Attachment:
pgpO8kwkvihUi.pgp
Description: PGP signature
- Follow-Ups:
- Re: kbuild & C++
- From: Esben Nielsen <[email protected]>
- Re: kbuild & C++
- References:
- Re: kbuild & C++
- From: Esben Nielsen <[email protected]>
- Re: kbuild & C++
- Prev by Date: [PATCH] Wistron laptop button driver
- Next by Date: RE: [PATCH 2/3 htlb-fault] Demand faulting for hugetlb
- Previous by thread: Re: kbuild & C++
- Next by thread: Re: kbuild & C++
- Index(es):