T
Thomas Mercer-Hursh
Guest
I would suggest that the fundamental issue here is violating encapsulation by returning a handle in the first place. Quite aside from the nicities of OO, that is bound to make it ambiguous where you should clean up those references. Instead, bundle all of the functionality for manipulating the TT or DS within the object and return ordinary values in response to methods. Much cleaner.
Continue reading...
Continue reading...