No, the "@" before SIGNALHANDLER did not help out. I need the ISO MODE for compiling Donald Knuth's typesetting system TeX. (TeX-FPC). It needs 32bit integer, gotos, ISO-IO-procedures, (get and put) and some extensions to ISO Pascal.Where can I find TeX-FPC? We don't need it, btw.
[…] How can I catch a signal within ISO MODE?
Surprisingly though, … = nil does not work. I can’t explain you why, but not assigned(…) is identical to an equal-comparison.
Yes, -FaBaseUnix
First: The comparison nil = does not and should not compile since it is not ISO-Pascal! But the error message is not very enlightening!
Error: Wrong number of parameters specified for call to "<Procedure Variable>"
Third: The compiler, even in ISO Mode, lets you call FPSignal as a procedure!
Finally: May I ask you to check my (mis)use of Free Pascal in http://mirrors.ctan.org/systems/unix/tex-fpc/tex-fpc.pdf
This is from January 2019. The edition I am preparing will have all the features of the TeX-GPC program. The last one is the signal handler!
Hi PascalDragon,
thanks for the hint: But FPC 3.2.0 in ISO mode does not accept the case label "otherwise":
but it is not yet implemented in the current Freepascal/Lazarus version. And work on it is halted since 2019 according bugreport https://bugs.freepascal.org/view.php?id=32549