Vote UpVote

Delphi: a memento that executes any code at end of method

The Wiert Corner – Following up on yesterdays Delphi: using IInterface to restore cursor at end of mehod (prelude to a memento that executes any code at end of method) here is the memento I meant. They are based on anonymous methods, which in Delphi are closures: they capture location. The location is kept just as long as needed, based on a well known Delphi reference counting mechanism: interfaces. The same one I used for the TTemporaryCursor class (and one of the reasons the TTemporaryCursor will keep functioning). My goal was to simplify code like this: procedure ...
Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-07 07:00


Visits: 1171
Votes: 5
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Radosław Kokoć
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)