exit(true); in exception statement is not Delphi (2009+) compatible.
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
FPC doesn't allow exit(true) in except statements (see code), while D2009 does.
fundsarf.pp(6,15) Error: Exit with argument can't be used here
CodeGear Delphi for Win32 compiler version 20.0
Copyright (c) 1983,2008 CodeGear
blaat.dpr(7)
8 lines, 0.06 seconds, 11620 bytes code, 13028 bytes data.
Steps to reproduce:
{$apptype console}
function whatever:boolean;
begin
try
result:=false;
except
exit(true);
end;
end;
begin
end.
Mantis conversion info:
- Mantis ID: 16803
- Fixed in version: 2.6.0
- Fixed in revision: 15492 (#60041ebf)