That doesn't really help anything; you still have to reconstruct foobar in order to return it, because you can't know whether the function calling the getter is looking for foo or bar (or oba, for that matter).charlieg wrote:Say you have property *foobar in the old representation. In the new one, it gets split into *foo and *bar.
With the getter/setter functions you only need update 1 place - change the functions to get/set the *foo and *bar instead of just *foobar
In order to do that, you need to split GetFooBar() into GetFoo() and GetBar(), and then figure out which function each call to GetFooBar() needs to use.