From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Saffi Hartal" To: c++-embedded@cygnus.com Subject: Re: biggest deterrant to using C++? Date: Fri, 14 Aug 1998 10:18:00 -0000 Message-id: <003401bdc68a$747568c0$6cdfcbc7@shartal.ariadnaweb.com> X-SW-Source: 1998/msg00023.html 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.