17
votes
Vote UpVote

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[
Favorite? Off-Topic? Lars D @ 2009-12-10 12:18

Statistics

Visits: 1019
Votes: 17
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

AlinS
Alister Christie
Charles Ardour
Edgar Muniz Berlinck
H0815
james_027
jamiei
Jan Derk
JC Chu
Jørn E. Angeltveit
LachlanG
Lars Fosdal
miller
ron_grove
Sergio
Tier777
vcldeveloper
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)