lkml.org 
[lkml]   [1999]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: linux headers and C++
Date
From
> new should throw bad_alloc if it fails to allocate memory.  If you catch
> and rethrow exceptions properly you can do all the standard releasing of

That needs exceptions. You will have a fairly bad time trying to handle
C++ exceptions in the Linux kernel (apart from the giant table size g++
outputs you have to deal with interrupts, re-entrant exception handling and
the like - and of course you have to handle running out of memory in the
exception handler (yes this last one is foul in C too))

> The primary reason I can see to keep C++ out of the kernel is that the user
> base doesn't seem to be large enough to get over the initial barrier of
> making it work and supporting it yet. If it were, the necessary patches
> would already be in doubters hands and none of us would be wasting
> bandwidth on the subject.

Writing mainstream kernel code in C++ would IMHO be crazy. Allowing people
to write C++ modules seems to be quite reasonable.

Alan


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.040 / U:1.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site