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 ...
Visits by Source
Users who voted for this posting