摘要:
一般使用泛型都是放类啊, 基础类型什么的, 所以使用上和非泛型基本没什么区别, 不过昨天有人在群里问的问题到是暴露了一个特例: TRC = record Str: string; Int: Integer; end;...var nRC: TRC; nList: TList; i: Integer;begin nList := TList.Create; for i := 0 to 9 do begin with nRC do begin Str := IntToStr(i); Int := i; end; nList.A... 阅读全文