The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,846 other followers

Delphi ARC: Free versus DisposeOf (via: Ondrej Pokorny – Google+)

Posted by jpluimers on 2014/03/12

An interesting discussion about the Delphi ARC compilers and Free versus DisposeOf is at Ondrej Pokorny – Google+ – Just realized: For me the most dangerous thing in ARC is….

2 Responses to “Delphi ARC: Free versus DisposeOf (via: Ondrej Pokorny – Google+)”

  1. dennis said

    The biggest problem is: you can’t reuse your old code without either changing all .free to .disposeOf (I wouldn’t recommend that) or identify weak references (a lot of work to do) and tag them with [weak]. I still think that ARC doesn’t really help writing better code (except for reducing try finally statements). And I still don’t understand the decision why .free is not the same as .DisposeOf in the nextgen compiler: if you let ARC the memory stuff do then just don’t use .free at all, if you want to free an object now, just use .free (as usual)…..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: