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/)
-   -   If you control both caller and callee: do not “override” functions by introducing a f (https://www.delphipraxis.net/206439-if-you-control-both-caller-callee-do-not-%93override%94-functions-introducing-f.html)

DP News-Robot 22. Dez 2020 05:20

If you control both caller and callee: do not “override” functions by introducing a f
 
Every now and then I see people “overriding” a function by introducing a function with the same name. Often this raises a lot of confusion, because the override will only work if you have the unit of the override closer in your user scope. Example: Unit AdoOverrideUnit; interface function VarTypeToDataType(VarType: Integer): TFieldType; implementation uses Data.DB; […]

Weiterlesen...


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