[fpc-pascal] Variable visibility problem
Alexandre Leclerc
alexandre.leclerc at gmail.com
Wed Jul 12 16:12:38 CEST 2006
Hi all,
in Controls.pas there is TControl.SetName(). In a form I made a procedure with
TMyForm.MyProcedure;
var
setName: string;
begin
//...
end;
The compiler complains about: frmMyForm.pas(467,3) Error: Duplicate
identifier "SetName"
It should do no problems. But If I want to use SetName of TControl
then I'll specifically invoke it. Normally the local variable should
have priority.
Is it a feature of FPC? :) Or should there be a bug filling on that
specific issue?
Best regards.
--
Alexandre Leclerc
More information about the fpc-pascal
mailing list