Forum Post: Re: OOABL and cleaning up handles

  • Thread starter Thread starter Marian Edu
  • Start date Start date
Status
Not open for further replies.
M

Marian Edu

Guest
there is nothing wrong with returning complex data in a temp-table/dataset structure... we can't always return just 'ordinary values' :) returning a handle to such a 'private' structure used for keeping state information can be seen as encapsulation violation but don't turn this into a generalization ;) On 07/02/2014 05:45 PM, Thomas Mercer-Hursh wrote: From: Thomas Mercer-Hursh Post: RE: OOABL and cleaning up handles Posted in: OpenEdge General Link: http://community.progress.com/technicalusers/f/26/p/11168/41445.aspx#41445 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. -- You were sent this email because you opted to receive email notifications when someone created a new thread. To unsubscribe from: - ...only this thread, disable notifications at http://community.progress.com/technicalusers/f/26/p/11168/41445.aspx#41445. - ...all email notifications from Progress Community, navigate to "Settings", click on the "Email" tab, then under the "Email Configuration" section, set Send Notifications to "No". -- m.edu keep it simple http://www.ganimede.ro http://ro.linkedin.com/in/marianedu medu@ganimede.ro mobile: +40 740 036 212 skype: marian.edu

Continue reading...
 
Status
Not open for further replies.
Back
Top