17
votes
When to use record instead of classes
Compas Pascal
– The original use or the record construct in ObjectPascal was to group different values in a way, that can be used in arrays, parameters etc. Classes have taken over this job, but the record construct is still sometimes important. For instance: type TTest= class a,b,c:integer; end; var arrT:array[1..1000000] of TTest; begin for i:=low(arrT) to high(arrT) do begin arrT[
Statistics
|
Visits by Source |
User Actions |




