[fpc-pascal] Fwd: What to do to get new users

Marco van de Voort fpc at pascalprogramming.org
Fri Jan 24 09:36:31 CET 2025


Op 24-1-2025 om 07:56 schreef Sven Barth via fpc-pascal:
> Hairy Pixels via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb 
> am Fr., 24. Jan. 2025, 06:16:
>
>     Feels to me like manual memory management and exceptions don’t mix
>     well. I use exceptions in C# and Swift and they don’t require all
>     this boiler plate to prevent memory leaks.
>
>
> Don't know about Swift, but C# uses garbage collection, so of course 
> you won't see resource protection blocks there... 🙄
>
Not to avoid memory leaks, but you do need jump through hoops to get 
scarce resources deallocated (IIRC implement IDisposable, and hope that 
it gets called in time). Delphi.NET used a lot of IDisposable.


More information about the fpc-pascal mailing list