Correct term? initialized record

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Correct term? initialized record

L505
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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal