PDA

View Full Version : Name this (Delphi) language feature



Thyandyr
29-05-2017, 07:28 PM
type
TSomething = record
private const
A = 1;
private type
TBlaah = packed record
X: Byte;
Z: Byte;
FF: Byte;
end;
private
Dog: Integer;
public
function Mix(const Color1: byte; const Color2: byte): String;
end;

I thought methods and properties were only for classes. What is the name of this feature, where can I read about it?

imcold
29-05-2017, 09:19 PM
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Structured_Types_(Delphi)#Records_.28advanced.29

Thyandyr
30-05-2017, 09:00 AM
Thank you!