. ( IOW, non-reference-counted) . , .
XE5 (. " " - Wiin32, ):
, 0. () 0. Wiin32 undefined, .
Delphi 2007, ; " VBScript" " [OpenGL]".
, Win64, , - . . , , , . ; ,
var
MyObj: TSomething;
, , :
MyObj := TSomething.Create; // Created yourself
MyObj := GetSomething(); // Function result
MyObj := Self.SomethingCollection[Self.SomethingCount - 1]; // Local ref
, var, var :
if SomethingIGot = nil then
raise Exception.Create('Received a nil parameter');
MyObj := SomethingIGot;
// or
MyObj := SomethingIGot;
if not Assigned(MyObj) then
raise Exception.Create('MyObj was assigned a nil value');