Sign in Join

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

Mailing lists / lazarus / 2018-02

IDE loose func default param on class completion

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

AlexeyT

On class completion (ctrl+shift+c?) I'm on method declaration in "implementation".

method decl in "interface" has "default" values of params. and this hotkey changes line in "interface" to same as in "impl" and default values - are lost... :-\

eg

   TATMarkers = class
   public
     procedure Add(APosX, APosY: integer;
       const ATag: Int64=0;
       ALenX: integer=0;
       ALenY: integer=0;
       APtr: TObject=nil;
       AInsertToBegin: boolean=false);
Regards, Alexey

Reply by email

Mattias Gaertner
to AlexeyT
Show quoted text 6 lines
On class completion (ctrl+shift+c?) I'm on method declaration in "implementation". method decl in "interface" has "default" values of params. and this hotkey changes line in "interface" to same as in "impl" and default values - are lost... :-\

Please create a bug report with a complete example.

Mattias

Reply by email

Vojtěch Čihák
to Vojtěch Čihák: I knw it but I always thought it is by design.   V.…

Thanks, I understand now. So I can confirm with Lazarus 1.9.0 r57291M FPC 3.0.4 x86_64-linux-qt.  
V.
______________________________________________________________

Show quoted text 5 lines
Od: Mattias Gaertner via Lazarus Komu: Datum: 14.02.2018 00:45 Předmět: Re: [Lazarus] IDE loose func default param on class completion
I knw it but I always thought it is by design.

It should remove default values from implementation, not from interface.

Mattias

Reply by email