>Subject: Re: C++ more often used than C? >From: "Mark Wilden" <[EMAIL PROTECTED]> > >>From: "Vinu Raj" <[EMAIL PROTECTED]> >> >>I too agree with you that C++ is a perfectly viable choice for Palm >>pplication development. In fact, I would actually prefer to use C++, >>and it is usually my programming language of choice. However, there >>are certain limitations imposed by the Palm OS platform itself that >>can cause potential problems.<
>I'm just not sure what to make of this statement, Vinu (and I'm not >sure what someone else would take away from it, either). >You would prefer to use C++ but don't because of platform limitations? >That would certainly not indicate to me that C++ is a "viable" choice >for Palm development. I'll try and summarize his point in my own way... If you are using a recent Metrowerks compiler (5.1 or more recent) switch on the C++ option to turn in from a C compiler to a C++ compiler. >>> You won't ever regret doing that. <<< There are a few C++ capabilities that should be either avoided or carefully used (see many discussions!), and there are issues with class-related facilities in shared libraries. But it is your choice as to how much C++ stuff you use. In my experience, extensive use of classes while avoiding some C++ features gives you smaller, cleaner, faster code than C for medium to large programs. The structure copy issue can be fixed with a encapsulated, in-line MemMove(pTo, pFrom, sizeof(...)) Roger Stringer Marietta Systems, Inc. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
