[Lazarus] Updating procedure signatures
Vojtěch Čihák
vojtech.cihak at atlas.cz
Tue Jun 25 17:20:12 CEST 2013
Thanks. I understand now.
I tested it a little (Lazarus 1.1 r41895M FPC 2.7.1 x86_64-linux-qt) and I have two issues:
1) Inconsistent behaviour when both options are UNchecked (Update all method signatures and Update multiple procedure signatured are OFF)
this:
procedure A(a: string); | //hit CTRL+SHIFT+C here
procedure B(a: string);
implementation
procedure A;
begin
end;
procedure B;
begin
end;
leads to this:
procedure A(a: string); |
procedure B(a: string);
implementation
procedure A(a: string);
begin
end;
procedure B;
begin
end;
BUT this:
public
{ public declarations }
procedure A(a: string); | //hit CTRL+SHIFT+C here
procedure B(a: string);
end;
var
Form1: TForm1;
implementation
{ TForm1 }
procedure TForm1.A;
begin
end;
procedure TForm1.B;
begin
end;
leads to this:
public
{ public declarations }
procedure A(a: string); |
procedure B(a: string);
end;
var
Form1: TForm1;
implementation
{ TForm1 }
procedure TForm1.A(a: string);
begin
end;
procedure TForm1.B(a: string);
begin
end;
procedure TForm1.B;
begin
end;
i.e. the third method is created
2) Attempt to update signature of procedure (not method) backwards from implememtation to interface leads to Acces Violation or Out of memory error, it sometimes kills IDE.
It works well for one method, as you mentioned in your mail.
Vojtěch
______________________________________________________________
> Od: "Mattias Gaertner" <nc-gaertnma at netcologne.de>
> Komu: <lazarus at lists.lazarus.freepascal.org>
> Datum: 25.06.2013 16:26
> Předmět: Re: [Lazarus] Updating procedure signatures
>
On Tue, 25 Jun 2013 13:34:59 +0200
Vojtěch Čihák <vojtech.cihak at atlas.cz> wrote:
Yes, for methods. Not for procedures.
Mattias
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130625/01432133/attachment-0003.html>
More information about the Lazarus
mailing list