open array 1



open_array1
Smart pascal source code
procedure Test(const a: array of const); var i: Integer; begin WriteLn('Length = ' + IntToStr(Length(a))); for i := Low(a) to High(a) Do WriteLn(a[i]); end; Test([4, 5, 6]); Test([1, 'one', true, 1.1]); Test([]); {<<< RESULT - CONSOLE LOG >>> ----------------------------- Length = 3 4 5 6 Length = 4 1 one True 1.1 Length = 0 ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}