On Sunday 17 March 2002 12:59, [EMAIL PROTECTED] wrote:
> C++ has its places, especially where inheritance fits well, and GUI is
> the best example for the use of inheritance.

Yeah. (At least with traditional toolkit designs...)


> For more procedure stuff like the kernel or device driving then C works
> well.
> Remember there are more mundane features of OO like grouping procedures
> and data into packages which can be done with any language though C++
> provides one with features to do it and control it.
>
> One danger I see with using C++ is that using RTLinux implies one wants
> control over what happens especially with predictable timing. What a
> compiler does with C++, especially dynamic calling, creation and
> deletion of objects and memory allocation  and worse of all memory
> deallocation may mean one loses control.

I'd rather say it makes it more complicated to keep track of things. If 
you the basics of how a C++ compiler implements things, you're not really 
going to lose control.

Anyway, this "hidden" complexity *is* a good reason to stay away from C++ 
in real time applications, unless you already happen to know how C++ 
constructs look in asm.

As I've mentioned, I actually started doing OO in asm, so what a C++ 
compiler does didn't seem to strange to me. Even so, I'd rather use C 
wherever the complexity doesn't *reqiure* C++ for readable code.


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------------> http://www.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`-------------------------------------> http://olofson.net -'
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to