This story begins with the FreeAndNil procedure, why its signature could not have a typed var parameter, why we can only pass variables declared as TObject to such procedures, and why the compiler refuses to compile if we try passing any other variable type even if it is a descendant of TObject.
procedure FreeAndNil(var Obj);
<h3 id="so-why-does-the-compiler-enforce-this-behavior">So why does t
Weiterlesen...