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 better. There is of course at least one other way.
We could introduce a new overloaded method where the return value is one of
the parameters, for example,
void getName(SDOString& name)
This avoids introducing new method names and leaves existing users
unaffected, but the eventual change to using this type of method will
require a larger code change and it also makes the old and new methods
rather inconsistent.
Regards,
Geoff.