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/)
-   -   Reminder to self: be aware of implicit setup/tear down code in methods (https://www.delphipraxis.net/203389-reminder-self-aware-implicit-setup-tear-down-code-methods.html)

DP News-Robot 13. Feb 2020 05:12

Reminder to self: be aware of implicit setup/tear down code in methods
 
If a part of a method requires implicit setup/tear-down code (for instance when using managed types like arrays, strings, etc), especially in rarely taken execution paths, then consider putting that code in a separate method. I bumped into this recently, and found out it*does not just hold for Delphi, it can happen in other languages […]

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:25 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