Sign in Join

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

Mailing lists / lazarus / 2016-08

Cosmetic issue about new empty project

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

silvioprog

Hello,

Some days ago we got the following empty form for a new created project:

1)

  TForm1 = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
  end;

However, in Lazarus from trunk:

2)

  TForm1 = class(TForm)
  private
  public
  end;

WDYT about to declare this way?:

3)

  TForm1 = class(TForm)
  end;

IMHO declared scopes like 2) without any comment or code doesn't sound good.

Thank you!

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160825/4845b8f4/attachment-0001.html>

Reply by email

Graeme Geldenhuys
to silvioprog: Some days ago we got the following empty form for a new created project: 1) TForm1 =…
silvioprog wrote
IMHO declared scopes like 2) without any comment or code doesn't sound good.

It was discussed in the Forums. Those code comments are absolutely useless (and I agree). The keywords "private" and "public" very clearly states what goes in there. Those code comments and no value. Personally I find them annoying and always delete them. So I'm happy a core member finally decided to remove them from the template.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

silvioprog
to Howard Page-Clark: See the forum discussion: http://forum.lazarus.freepascal.org/index.php/topic,33730.msg219…

On Thu, Aug 25, 2016 at 1:27 PM, Howard Page-Clark wrote:
[...]

See the forum discussion: http://forum.lazarus.freepascal.org/index.php/topic,33730. msg219103.html#msg219103

Thanks for the link, I'm going to comment there ...

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160825/5563fc46/attachment.html>

Reply by email