2016-08-02 11:43 GMT+02:00 leledumbo <leledumbo_c...@yahoo.co.id>: > Just came across this on my fb timeline: > https://pascal.today/2016/08/01/arc-for-non-managed-types/ > would be interesting for gc lovers. WARNING: the given code there doesn't > compile with FPC, even on trunk >
Nothing new. Proposed long time ago (2008!), many times: http://blog.barrkel.com/2008/11/somewhat-more-efficient-smart-pointers.html https://adugmembers.wordpress.com/2011/12/05/smart-pointers/ http://delphisorcery.blogspot.com/2015/01/smart-pointers-in-delphi.html In FPC (branch for smart pointers) we have own much faster implementation (based on the default field): https://github.com/maciej-izak/PascalSmartPointers which is usable also for nullable types. -- Best regards, Maciej Izak
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal