Vote UpVote

Extending TObject with data at runtime

Yet Another Programming Blog – In a recent comment on this blog someone suggested a way of  extending an existing object instance with custom data at run-time. The main idea is to be able to “assign” to an arbitrary object (whose sources you cannot change) some other object at run-time. This may prove to be useful in different scenarios when you need some additional data to be carried by an object. The suggested idea was to use the monitor field which all TObject instances have. If you are not familiar with monitors in Delphi, let me explain: All TObject instances carry a new “hidden” field which is ...
Favorite? Off-Topic? alex @ 2009-06-13 17:25


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

Visits by Source

User Actions

Users who voted for this posting

Felipe L.B.
Tobias G.
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)