Vote UpVote

Weak interface references

Delphi sorcery – We all know how painful it can be working with interfaces and reference counting when it comes to circular or cross references. Vincent Parrett wrote about that a while ago and presented a nice solution.The only disadvantage about his solution was the special class type (TWeakReferencedObject) you have to inherit from to use a weak reference to. What if you want to use a weak reference to something that already exists and that you cannot change?That is where my idea comes in.The Weak<T> type supports assignment from and to T and makes it usable as if you had a variable of T. It has the ...
Favorite? Off-Topic? noreply@blogger.com @ 2012-06-03 18:07


Visits: 913
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)