Making Version 8.0
Posted: Sat Jun 13, 2026 7:36 pm
What made the cut?
overload
overload
dynamic arraysCode: Select all
procedure WriteLn(x: Integer); overload; procedure WriteLn(x: String); overload; procedure WriteLn(x: Real); overload; WriteLn(42); { Calls Integer version } WriteLn('hello'); { Calls String version } WriteLn(3.14); { Calls Real version }
type forward declarationsCode: Select all
var arr: array of Integer; { No fixed size } begin SetLength(arr, 10); arr[0] := 5; SetLength(arr, 20); { Grow } arr[15] := 15; SetLength(arr, 5); { Shrink } end;
Code: Select all
type PNode = ^Node; { Forward reference } Node = record value: Integer; next: PNode; { Can now use PNode } end;