params autocast



params_autocast
Smart pascal source code
procedure Test(f: Float; i: Integer; s: String); begin WriteLn(FloatToStr(f)); WriteLn(IntToStr(i)); WriteLn(s); f := f * i; s := s + s; WriteLn(f); WriteLn(i); WriteLn(s); end; var v: Variant; v := 2; Test(10, v, v); v := 3.0; Test(v, v, v); {<<< RESULT - CONSOLE LOG >>> ----------------------------- 10 2 2 20 2 22 3 3 3 9 3 33 ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}