Break in Exception block try..except..finally



Break in Exception block try..except..finally
Smart pascal source code
var i : Integer; BEGIN while True do begin try raise Exception.Create('hello'); except on e:Exception do begin WriteLn(e.Message); Break; end; end; end; repeat try raise Exception.Create('world'); except on e:Exception do begin WriteLn(e.Message); Break; end; end; until False; for i:=1 to 10 do begin try try raise Exception.Create('duh'); except on e: Exception do begin WriteLn(e.Message); Break; end; end; finally WriteLn('finally'); end; WriteLn(i); end; { CONSOLE OUTPUTS hello world duh finally }