You can always override the assignment operator and replace it w/ a MemCopy if you are certain that it would be appropriate for your object.
A bit of a pain to have to remember to do so, but it can be done. -- -Richard M. Hartman [EMAIL PROTECTED] 186,000 mi/sec: not just a good idea, it's the LAW! "Dave Parker" <[EMAIL PROTECTED]> wrote in message news:99305@;palm-dev-forum... > > I recently considered switching from C to C++ for my Palm programs, however > I found a case where the (CodeWarrior 8) C++ compiler generates > significantly worse code than the C compiler for the same simple C code > (nothing C++ about it) -- structure assignment. In C, when you assign a > structure, the structure will be copied over as a contiguous memory block in > as few instructions as possible. However, the C++ compiler will generate > instructions to assign the individual fields one at a time. > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
