[Lazarus] IDE "Rename identifier" misfeature

Pascal Riekenberg pascal at riekenberg.eu
Tue May 26 09:49:41 CEST 2020


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

Pascal

> "Alexey Tor. via lazarus" <lazarus at lists.lazarus-ide.org> 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
> lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus


More information about the lazarus mailing list