On Wed, 28 Sep 2005 21:10:31 +0200
Matthijs Willemstein <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> When I have the following code:
> 
> type
>   TFoo = class
>     procedure FooProc;
>   end;
> 
> After invoking code completion the skeleton of procedure TFoo.FooProc is
> created. Then I change the definition to read as follows: 
> 
> type
>   TFoo = class
>     procedure FooProc(AValue: TWhatever);
>   end;
> 
> Pressing <ctrl><shift>C (thus invoking code completion) a new skeleton
> for procedure TFoo.FooProc is made. I think this is not the correct
> behaviour. Either it should do nothing at all, or it should adapt the
> previously created version.
> Any opinions on that?

I would prefer automatic adapting too.
But some Delphians would expect something different:

type
  TFoo = class
    procedure FooProc(AValue: TWhatever);
  end;

procedure TFoo.FooProc;
begin
end;

will be completed to

type
  TFoo = class
    procedure FooProc;
    procedure FooProc(AValue: TWhatever);
  end;

procedure TFoo.FooProc;
begin
end;

procedure TFoo.FooProc(AValue: TWhatever);
begin
end;


So, the we should add automatic adapting as a checkbox to the class
completion options.

What about this:

  TFoo = class
    procedure FooProcA;
    procedure FooProcB;
  end;

change to this

  TFoo = class
    procedure FooProc1;
    procedure FooProc2;
  end;

Now, you don't know, which procedures corresponds.
What should happen?


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to