class var vs class const may need some clarification
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
Although the documentation is correct it may need some clarification regarding class var vs class const.
- class var is limited to the class where it is declared and is not inherited by descendants
- class const will be inherited by descendants.
Two entries related:
https://www.freepascal.org/docs-html/ref/refse40.html
https://www.freepascal.org/docs-html/ref/refsu24.html#x72-940006.2.2
There may be more. The difference was obvious to me but not to everyone.
Steps to reproduce:
See discussion and example code here:
http://forum.lazarus.freepascal.org/index.php/topic,39940.msg275139.html#msg275139
Mantis conversion info:
- Mantis ID: 33120
- OS: all
- OS Build: all
- Build: 38099
- Platform: all
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 1466 (#5830081d).
- Target version: 3.2.0