Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-05

IDE "Rename identifier" misfeature

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexey Tor.

Hello

ATSynEdit has such function
procedure TATSynRanges.DeleteFromLineIndexer(AIndex: integer);
var
   Ptr: PATSynRange;
   NItemLen, iLine, iItem, j: integer;
begin
   Ptr:= ItemPtr(AIndex);
   for iLine:= Ptr^.Y2 downto Ptr^.Y do
   begin
     ..
   end;
end;

when I do "Rename identifier" from Ptr to ItemPtr, IDE allows to do it, and I have conflict with class method ItemPtr(), which is even called in this function.

Regards, Alexey Torgashin

Reply by email

Pascal Riekenberg
to Alexey Tor.

Well, IDE doesn't check for conflicts. It's up to you!

Pascal

Show quoted text 31 lines
"Alexey Tor. via lazarus" hat am 26. Mai 2020 um 00:25 geschrieben: Hello ATSynEdit has such function procedure TATSynRanges.DeleteFromLineIndexer(AIndex: integer); var   Ptr: PATSynRange;   NItemLen, iLine, iItem, j: integer; begin   Ptr:= ItemPtr(AIndex);   for iLine:= Ptr^.Y2 downto Ptr^.Y do   begin     ..   end; end; when I do "Rename identifier" from Ptr to ItemPtr, IDE allows to do it, and I have conflict with class method ItemPtr(), which is even called in this function. -- Regards, Alexey Torgashin -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

Reply by email