DP News-Robot |
22. Dez 2020 06: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...
|