Duplicate Function Names Delphi 2006

Is there a way to get the Delphi compiler to recognize and report duplicate function names (especially those defined in different units that the compiler uses)?

+3
source share
3 answers

No. Of course, it would be nice if it were. You can get around this using the unit name of the function you want to call:

uses
  unit1, unit2;

procedure DoSomethingFromUnit1;
begin
  unit1.DoSomething;
end;

Try to present this in QC as a function request. It would be helpful to have.

+1
source
+1

This is one of those things that makes C so dangerous.

CodeHealer handles a message perfectly when a method or identifier hides another with the same name but with a different scope.

+1
source

Source: https://habr.com/ru/post/1713658/


All Articles