代码说明:
从TObject派生的列表集合类
Delphi has included a collection class from its initial release, TList. Unfortunately, the implementation chosen focused on using Pointer as opposed to references. This creates a problem in attempting to use TList to contain descendents of TObject. Every time TList is used to submit an instance for later retrieval, a case of Pointer(...) is required. Retrieval involves casting the returned Pointer into the appropriate class.
【立即下载】
|