afe3fdfd77
git-svn-id: http://code.remobjects.com/svn/pascalscript@1 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
17 lines
748 B
Plaintext
17 lines
748 B
Plaintext
Program test;
|
|
var
|
|
r: TObject;
|
|
begin
|
|
if r = nil then Writeln('(r = nil) = true') else Writeln('(r = nil) = false');
|
|
if r <> nil then Writeln('(r <> nil) = true') else Writeln('(r <> nil) = false');
|
|
r := TObject.Create;
|
|
if r = nil then Writeln('(r = nil) = true') else Writeln('(r = nil) = false');
|
|
if r <> nil then Writeln('(r <> nil) = true') else Writeln('(r <> nil) = false');
|
|
r.Free;
|
|
if r = nil then Writeln('(r = nil) = true') else Writeln('(r = nil) = false');
|
|
if r <> nil then Writeln('(r <> nil) = true') else Writeln('(r <> nil) = false');
|
|
r := nil;
|
|
if r = nil then Writeln('(r = nil) = true') else Writeln('(r = nil) = false');
|
|
if r <> nil then Writeln('(r <> nil) = true') else Writeln('(r <> nil) = false');
|
|
end.
|