Sign in Join

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

Mailing lists / lazarus / 2012-01

class completion now updates multiple implementation signatures

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

Hi all,

I improved class completion to update multiple method signatures.

For example:

type
  TMyClass = class
  public
    procedure DoIt(a: integer); // parameter added
    procedure HandleIt(s: string); // parameter changed
  end;
procedure TMyClass.DoIt;
begin
end;
procedure TMyClass.HandleIt(param: char);
begin
end;

Doing code completion Ctrl+Shift+C in the TMyClass interface updates the implementation:

procedure TMyClass.DoIt(a: integer);
begin
end;
procedure TMyClass.HandleIt(s: string);
begin
end;

When working with overloads (methods with same name but different parameter types) you have to change one signature at a time. Same as before.

Mattias

Reply by email

Sven Barth
to Mattias Gaertner
"Mattias Gaertner" wrote 37 lines
Hi all, I improved class completion to update multiple method signatures. For example: type TMyClass = class public procedure DoIt(a: integer); // parameter added procedure HandleIt(s: string); // parameter changed end; procedure TMyClass.DoIt; begin end; procedure TMyClass.HandleIt(param: char); begin end; Doing code completion Ctrl+Shift+C in the TMyClass interface updates the implementation: procedure TMyClass.DoIt(a: integer); begin end; procedure TMyClass.HandleIt(s: string); begin end; When working with overloads (methods with same name but different parameter types) you have to change one signature at a time. Same as before.

Finally! Thank you! :D

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120126/58f509c8/attachment.html>

Reply by email

Unknown author
to Sven Barth
Sven Barth wrote 21 lines
Am 25.01.2012 20:26 schrieb "Mattias Gaertner" : > > Hi all, > > I improved class completion to update multiple method > signatures. > > For example: > > type > TMyClass = class > public > procedure DoIt(a: integer); // parameter added > procedure HandleIt(s: string); // parameter changed > end; > > When working with overloads (methods with same name but different > parameter types) you have to change one signature at a time. Same as > before. Finally! Thank you! :D

Usually I work the other way round:
I add parameters in the implementation while coding the routine.

Will that work too ?

Michael.

Reply by email

Unknown author
to Mattias Gaertner
Mattias Gaertner wrote 10 lines
On Thu, 26 Jan 2012 09:13:29 +0100 (CET) wrote: > [...] > Usually I work the other way round: > I add parameters in the implementation while coding the routine. > > Will that work too ? No.

I was afraid this would be so. And can this be added ?

Michael.

Reply by email

Mattias Gaertner
to Unknown author
Show quoted text 16 lines
On Thu, 26 Jan 2012, Mattias Gaertner wrote: > On Thu, 26 Jan 2012 09:13:29 +0100 (CET) > wrote: > >> [...] >> Usually I work the other way round: >> I add parameters in the implementation while coding the routine. >> >> Will that work too ? > > No. I was afraid this would be so. And can this be added ?

Added.

Mattias

Reply by email