[progress Communities] [progress Openedge Abl] Forum Post: Re: Issue With List Collection

  • Thread starter Thread starter GregHiggins
  • Start date Start date
Status
Not open for further replies.
G

GregHiggins

Guest
This is the method called by super:Add(obj): method public logical Add( newObject as Object): if valid-object(newObject) then do: mhDefaultBuffer:buffer-create(). assign mhField:buffer-value = newObject Size = Size + 1. mhDefaultBuffer:buffer-release(). return true. end. return false. end method. As we can see, mhDefaultBuffer:buffer-release() is what makes ttList unavailable. Obviously, this line of code was added after the List class was developed and (presumably) tested. My favorite development tools company has this feature called ABLUnit which can be used for unit regression testing; it might be the kind of thing you folks would want to look into. My personal preference is for the buffer-release to stay; I am not a fan of leaving scoped records lying about.; though I have created persistent procedures and some classes whose sole purpose was to manage a temp-table where I sometimes allowed global scope. Regardless of what you choose, I think unit tests for every class in the library is required.

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