Blog post "Weak and Unsafe Interface References in Delphi 10.1 Berlin" at http://blog.marcocantu.com/blog/2016-april-weak-unsafe-interface-references.html

Blog post "Weak and Unsafe Interface References in Delphi 10.1 Berlin" at http://blog.marcocantu.com/blog/2016-april-weak-unsafe-interface-references.html
http://blog.marcocantu.com/blog/2016-april-weak-unsafe-interface-references.html

Comments

  1. IMHO weak references are the most important feature for the Windows compilers since generics have been introduced.

    ReplyDelete
  2. So cool you've implemented both unsafe and weak!

    ReplyDelete
  3. When should I choose unsafe instead of weak? Whent is it better to have a dangling pointer instead of nil?

    ReplyDelete
  4. Unsafe can be used if you are predictable memory management and memory release. So you know if a reference is valid by design. Or for short-lived temporaries. Weak in all other cases of multiple independent references.

    ReplyDelete

Post a Comment