Extended Record lazarus / 64-FPC development ---------------------------------------------------------------------- SonnyBoyXXl · 2021-11-02 21:57 The advanced records are a cool feature. Would it be possible to implement a type of inheritance like this way: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i TMyRecord = record    x: integer;    y: integer;end; TMyRecord2 = extends record (TMyRecord)    z: integer;end;  So TMyRecord2 will have 3 elements: x,y, and z ---------------------------------------------------------------------- ASerge · 2021-11-03 00:25 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   TMyRecord = object    X: Integer;    Y: Integer;  end;   TMyRecord2 = object(TMyRecord)    Z: Integer;  end;Without virtual functions, its size is the same as the records. ---------------------------------------------------------------------- PascalDragon · 2021-11-05 12:58 Quote from: SonnyBoyXXl on November 02, 2021, 10:57:22 pmThe advanced records are a cool feature. Would it be possible to implement a type of inheritance like this way: No. If you need inheritance then use object.