I share some results of my quest for a uniform memory management model across all platforms. For some reason, it also touches on old-school linked lists and new-school messaging...
I share some results of my quest for a uniform memory management model across all platforms. For some reason, it also touches on old-school linked lists and new-school messaging...
https://blog.grijjy.com/2017/08/09/experiments-in-uniform-memory-management/
https://blog.grijjy.com/2017/08/09/experiments-in-uniform-memory-management/
Interfaces seems the way to go.
ReplyDeleteSo much overhead just to not write "Free" in the code...
ReplyDelete(I'm about automatic MM at all).
Agree with the content... Couldn't have say better the concerns with multiple memory management in Delphi, and breaking changes. This is in fact why I use now FPC for server work, which has perfect Linux support.
ReplyDeleteIf only Emba had simply never introduced ARC we would have a uniform model.
ReplyDeleteDavid Heffernan We still would have two different ones which developer are fighting since Delphi 3 (I am assuming you mean ARC for objects).
ReplyDeleteStefan Glienke Yes, I meant ARC for objects.
ReplyDeleteHaving two memory life cycle models is lunacy. I can understand that some people don't want ARC for old school code, but there should be an option to run full ARC for VCL/RTL for Windows too. I would gladly spend time on porting our old model to ARC.
ReplyDelete