全局数据、堆栈以及 Heap!..............................................................................................!394!
全局内存!.............................................................................................................................................................!394!
堆栈!.......................................................................................................................................................................!395!
Heap!(堆)!............................................................................................................................................................!395!
对象参考模型!.........................................................................................................................!396!
把对象当成参数来传递!................................................................................................................................!397!
内存管理小技巧!....................................................................................................................!398!
释放我们建立的对象!.....................................................................................................................................!399!
只能把对象释放一次!.....................................................................................................................................!400!
内存管理与接⼝!....................................................................................................................!402!
更深入 Weak 参考!..........................................................................................................................................!403!
Weak 参考是受到管理的!............................................................................................................................!406!
不安全的标注! (The!unsafe!Attribute)!..................................................................................................!407!
追踪与检测内存!....................................................................................................................!407!
内存状态!.............................................................................................................................................................!408!
FastMM4!.............................................................................................................................................................!408!
追踪泄漏以及其他全局设定!......................................................................................................................!409!
在完整版 FastMM4 上的缓冲区溢出!.....................................................................................................!411!
在 Windows 以外的平台的内存管理!.....................................................................................................!414!
追踪每个类别的配置!.....................................................................................................................................!414!
撰写强健的应用程序!..........................................................................................................!414!
建构函式,! 解构函式,! 以及例外!...............................................................................................................!415!
巢状 Finally 区块!............................................................................................................................................!417!
动态型别检查!...................................................................................................................................................!418!
这个指针是对象参考吗?!..............................................................................................................................!419!
第三部:& 进阶功能&________________________________________________&423!
14:泛型&____________________________________________________________ &424!
通用的键-值对! (Key-Value!Pairs)!................................................................................!424!
行内变数与泛型型别推定!...........................................................................................................................!428!
泛型的型别规则!..............................................................................................................................................!428!
Object!Pascal 里面的泛型!.................................................................................................!430!
泛型型别兼容性规则!.....................................................................................................................................!431!
标准类别的泛型方法!.....................................................................................................................................!432!
泛型型别实体化!..............................................................................................................................................!434!
泛型型别函式!...................................................................................................................................................!436!
泛型类别的类别建构函式!...........................................................................................................................!439!