[fpc-pascal] Correct term? initialized record

L505 fpc505 at z505.com
Thu Nov 3 23:46:20 CET 2005


What exactly do you call this type of record, where you pre-initialize the record's values:

type
  TTestRecord = record
    number1: integer;
    number2: integer;
    text1: string;
    text2: string;
    proc1: procedure;
  end;

procedure procedure1;
begin
  writeln('And this is procedure1');
end;

var
  TestRecord: TTestRecord = (
    number1: 1;
    number2: 2;
    text1: 'testing1';
    text2: 'test2';
    proc1: @procedure1;
  );

I would call it an "initialized record" but I just want to make sure I have my terminology
correct. 

Lars




More information about the fpc-pascal mailing list