Sign in Join

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

Mailing lists / lazarus / 2018-12

typo in LCL comment

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

AlexeyT

customform.inc

{------------------------------------------------------------------------------
   procedure TCustomForm.BeginFormUpdate;
   Called after all children handles are created.
  ------------------------------------------------------------------------------}
procedure TCustomForm.ChildHandlesCreated;
begin
Regards, Alexey

Reply by email

Juha Manninen
to AlexeyT
PM AlexeyT wrote 8 lines
{------------------------------------------------------------------------------ procedure TCustomForm.BeginFormUpdate; Called after all children handles are created. ------------------------------------------------------------------------------} procedure TCustomForm.ChildHandlesCreated; begin ...

I removed the comment block and moved the one line comment down. In general those blocks are useless because they duplicate information and they become outdated easily when a function is renamed. This one was copied from another function and not changed accordingly. Such comment blocks also occupy space which could be used for relevant information and code.
Only a limited number of lines fit in one editor window.

Juha

Reply by email