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/)
-   -   FMX anti-pattern: returning nil rather than raising an exception on an invalid state (https://www.delphipraxis.net/174545-fmx-anti-pattern-returning-nil-rather-than-raising-exception-invalid-state.html)

DP News-Robot 28. Apr 2013 13:20

FMX anti-pattern: returning nil rather than raising an exception on an invalid state
 
In the Delphi RTL and VCL, a method called LoadFromFile or the like will raise an exception if the file doesn’t exist or is invalid. Similarly, if an object property getter implements a lazy-loading pattern (meaning, the value of the property will only be initialised when first needed), it ...http://feeds.feedburner.com/~r/delph...~4/hRC4cGJYLo8

More...


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