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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to