Constructors are actually allowed in extended (advanced) records (at least in FPC 3.2.4)
Some of the restrictions when compared to classes or objects are obvious from the syntax diagram:
- <...>
- Constructors or destructors cannot be defined.
This should be clarified IMO, as current FPC 3.2.4 does support constructors in records if they have parameters.
See also this:
- Advanced record constructors - https://forum.lazarus.freepascal.org/index.php?topic=50112.0
- Auto Constructors/Destructors - https://forum.lazarus.freepascal.org/index.php?topic=46614.0
Edited by Dmitry D. Chernov