Skip to content

Instantly share code, notes, and snippets.

@undreren
Created October 17, 2016 07:58
unit Wat;
interface
type
TTest = class
procedure Test;
end;
procedure Example;
implementation
{ TTest }
procedure TTest.Test;
begin
WriteLn('No runtime exception!');
end;
procedure Example;
var
LTest : TTest;
begin
LTest := Nil;
try
LTest.Test;
except
WriteLn('Runtime exception!');
end;
ReadLn;
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment