Hacker News new | past | comments | ask | show | jobs | submit login

I know you are trolling, but just in case, you can implement RAII using record management operators:

https://wiki.freepascal.org/management_operators

These are not in Free Pascal 3.0.6 (used in the latest Lazarus release) but they are in trunk and will be available in Free Pascal 3.2. I think they are also available in Delphi since a while now.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: