Recent

Author Topic: Classes - Inheritance - how to add an additional parameter to the constructor?  (Read 3574 times)

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1088
  • Professional amateur ;-P
Hey All,

The 'A' or 'a' prefix stands for 'argument' (aka 'parameter' due to 'P' already being used for pointers).

I actually assumed it in this way, maybe because of the way all the other prefixes have been selected:
  • T is for Type
  • F is for Field
  • P is for Pointer

So for me it made sense that A would be for Argument.
I did, nonetheless, miss the fact that P, for Parameter was already used :)

Cheers,
Gus

PS: And if I'm not mistaken, with this post I've earned my chops as Hero Member, YAY, LOL!!!
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
The 'A' or 'a' prefix stands for 'argument' (aka 'parameter' due to 'P' already being used for pointers).

Interesting, I assumed as lucamar and Bart did.

This makes me appreciate the convention much more.
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

 

TinyPortal © 2005-2018