3 ms·
I still have a recognition letter from Borland regarding a bug I have found in Turbo Pascal 6.0. function BrokenResult: Integer; var BrokenResul
by pjmlp 2y ago
I still have a recognition letter from Borland regarding a bug I have found in Turbo Pascal 6.0.
function BrokenResult: Integer;
var
BrokenResult: Integer; (* This should not happen *)
begin
BrokenResult := 42 (* Local variable will be assigned, function result is whatever the compiler comes up with*)
end;