Quote Originally Posted by nuzzle View Post
It sure works. The stuff_ptr() function will always return a pointer to stuff of the current object.

What you cannot do is assign stuff_ptr() to an object variable and then copy the object. Then the variable in the copy will point to stuff of the object it was copied from. So you must always access stuff via a call to stuff_ptr() and never store a pointer to stuff in an object variable. But the same goes for Lindley's getOtherAddr() function so there's no difference really. Lindley's suggestion is just more complicated.
I missread your code, sorry. I though stuff_ptr was actually a member variable initialized to stuff. Didn't see it was actually a function.

I'm still not sure what Lindley is trying to do, so I can't judge either approach.