« Reply #46 on: November 01, 2018, 04:26:16 pm »
Yes? that applies here too.... ? See
https://www.freepascal.org/docs-html/rtl/system/exit.htmlConfused with Halt()?
Here's proof:
{$ifdef fpc}{$mode objfpc}{$H+}{$endif}
uses sysutils;
function somefunction:boolean;
begin
try
exit(100+4 = 104); //true!
finally
Result := false;
end;
end;
begin
writeln(somefunction); // what does that say?
end.
Btw wp already spotted his errant ways. He is forgiven

« Last Edit: November 01, 2018, 04:47:13 pm by Thaddy »

Logged
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.