Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.031 Beiträge
 
#1

If you control both caller and callee: do not “override” functions by introducing a f

  Alt 22. Dez 2020, 05:20
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...
  Mit Zitat antworten Zitat