Created
October 17, 2016 07:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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