Re: [SDO C++] Representing strings as objects rather than C style character pointers

2006-06-09 Thread Caroline Maynard
At the risk of repeating myself, my major concern is with avoiding unnecessary copying of the data. So, if you feel the need to change the APIs as a one-off, well, I can live with that - at this stage of development I don't expect you to support old APIs for ever. But I really don't want to

Re: [SDO C++] Representing strings as objects rather than C style character pointers

2006-06-07 Thread Geoffrey Winn
On 06/06/06, Geoffrey Winn [EMAIL PROTECTED] wrote: The more difficult case arises when a method returns a string value. For example, const char* getName() We can't overload this, so we have two alternatives. I should have known better. There is of course at least one other way. We

Re: [SDO C++] Representing strings as objects rather than C style character pointers

2006-06-07 Thread Geoffrey Winn
On 06/06/06, Geoffrey Winn [EMAIL PROTECTED] wrote: The more difficult case arises when a method returns a string value. For example, const char* getName() We can't overload this, so we have two alternatives. What I was trying to write in my previous note was ... I should have known