Re: DataObject and DataObjectList in Jamaica
| Newsgroups | gmane.comp.cms.xaraya.devel |
|---|---|
| Organization | Xaraya |
| Message-ID | <[email protected]> |
A useful way to look at the objectlist I think is to consider the list items as snapshots of the objectlist in a particular state. So iterating through the list becomes a process of changing the object's state. With that idea in mind I'm not so sure where a decorator type instantiation would fit, unless we indeed create some sort of items object class. Such a class might naturally be instantiated as a result of applying getItem or getItems, which would however require changing the current API (because the result of those methods is at present an integer/array). I don't see that as worth it offhand. Marc