[fpc-devel] "Blank slate" next version of FPC
Jonas Maebe
jonas at freepascal.org
Sun Feb 24 16:48:26 CET 2019
On 24/02/2019 16:06, Ryan Joseph wrote:
>
>> On Feb 24, 2019, at 9:22 AM, Marco van de Voort<fpc at pascalprogramming.org> wrote:
>> It is part of the language, people have lived with it over 20 years. If it bothers you, help making exceptions cheaper (table based exceptions/seh)
> I must say that’s disappointing because FPC is usually so good about allowing you to opt into extra features via $modeswitch
It's is an inherent part of the "class" feature. Without it, any
exception that gets thrown in a constructor (or in any code called by a
constructor) will cause memory leaks.
>(one of the reasons I don’t stress about feature bloat like in other languages). I would suggest we make this a compilers switch that is on by default but can be disabled.
You can disable these exception frames with {$implicitexceptions off}.
If you want to disable it for TObject, you have to recompile the system
unit with that switch, since the code for TObject's constructor is
inside that unit.
ld never do this.
Jonas
More information about the fpc-devel
mailing list