For my project at work, the GUI was done in C++ with reusable code modules like bitmap objects, labels, text boxes, sliders, pulldown menus, etc. The RTLinux modules were all done in straight C. I thought it was obvious which to do.
Steve >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of >Christopher D. Carothers >Sent: Wednesday, March 13, 2002 1:25 PM >To: [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: Re: [rtl] Re: RT C++ and why more people don't use it. > > > Hi all -- let me fan the flames a bit on this topic and >point out >a very interesting paper on the subject of OO programming by >Les Hatton. >The title is "Does OO Synch with How We Think?", IEEE >Software, May/June >1998. Basically, the conclusion the author comes to and >provides evidence >for is that object-oriented programming results in more coding >errors and >each error takes long to fix. The reason he provides is that object- >oriented programming requires much greater dependence on the >developer's >long term memory (human memory and NOT RAM :-)) which ultimate lead to >more errors and by extension they are going to take longer to fix. > > Now, I caveat the above with that Les' study was done before the >wide use of the Standard Template Library (STL). In fact, STL >was not used >in C vs. C++ comparison study. > > When deciding to go with C++ (vs C), the author recommends you >determine if you get a high degree of code reuse ( GUI development has >benefited greatly from this). Otherwise, go with C. -- [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/