This is the mail archive of the c++-embedded@sourceware.cygnus.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: biggest deterrant to using C++?


1. C++ is very implicit and therefor dangerous.  Programers must (as always)
know what to do and what to use and more important what not to use
(overloading of casting, calling polymorphic function in constructors,
using bad design with overheads not reasonable ). One should be very
experienced.

2. The main benefit of C++ is in the application side. C++ have many
benefits that do not come into action if your very near the hardware
(usually) . such benefit is avoiding sending all those parameters by
function because the object know them already, it was constructed or
initialized with the parameters (other way to do that is with annoying
arrays and passing Id's). when you write drivers you usually do it C style
and you prefer that  your colleague would not touch C++ and make annoying
Bugs.

3. In Our Embedded project with vxWorks, I use a bit of C++ when it
convenient, the people around me do not. if there isn't a real benefit it
should not be used. but I do think that using the compiler with strict type
check is good. in future when the need to add polymorphic feature will
arouse we might use much more C++ but very carefully. meanwhile the basic is
C (I do miss the syntax of calling method in Class).

    Don't shoot your leg off by using to much of C++, your fellow men might
not know about the pits of C++ ( i already forgot some of them and believe
me there are many ...).

    maybe with good JITs will do it the Java way.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]