Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Creating multiple objects using try-finally (https://www.delphipraxis.net/152777-creating-multiple-objects-using-try-finally.html)

DP News-Robot 6. Jul 2010 15:50

Creating multiple objects using try-finally
 
One of the most used object-oriented patterns is probably this one: foo := TFoo.create; try //do something with foo finally foo.free; end; It basically means, that if you create an instance of some class and if there is no “owner” who takes care of the new instance’s life ...http://feeds.feedburner.com/~r/delph...~4/G06WR3CEnFs

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:10 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz