
|
[openbeos]
||
[Date Prev]
[07-2004 Date Index]
[Date Next]
||
[Thread Prev]
[07-2004 Thread Index]
[Thread Next]
[openbeos] Re: Using Haiku code
- From: "Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx>
- To: <openbeos@xxxxxxxxxxxxx>
- Date: Sat, 3 Jul 2004 18:47:43 +0200
> Our code is always open for anyone to use. That is the nature of MIT. :-D
Still, I hope we get something back from the people who use our code. ;)
What kind of driver do you want to write, Lorenzo?
> Now, having said that, using C++ in the kernel is tricky and more so in R5
> than
> in Haiku. There is an old newsletter article from Be on this.
Actually, the only things you cannot use are exceptions and RTTI stuff, i.e.:
use static_cast instead of dynamic_cast. And of course you cannot use dynamic
kernel libraries, so if you want to share C++ code between multiple modules you
must compile the classes into every module using that code (e.g. by linking
your modules against a static library containing the C++ class code).
> I took a quick peek at Vector.h and kernel_cpp.h and nothing really strikes
> me
> as being unusable in the R5 kernel.
Niels Reedijk and I use C++ (including our list templates) for our kernel
modules and it works very well in R5.
Bye,
Waldemar
|

|