static to dynamic empty array



static_to_dynamic_empty_array
Smart pascal source code
procedure Test1(const AParams: Array Of Variant); begin WriteLn(Length(AParams)); end; Test1([]); procedure Test2(const AParams: Array Of Integer); begin WriteLn(Low(AParams)); WriteLn(High(AParams)); end; Test2([]); {<<< RESULT - CONSOLE LOG >>> ----------------------------- Errors >>>> Hint: "test1" does not match case of declaration ("Test1") [line: 6, column: 1] Hint: "test2" does not match case of declaration ("Test2") [line: 14, column: 1] Result >>>> 0 0 -1 ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}