Improve documentation of untyped parameters
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
As the discussion on the forum ( https://forum.lazarus.freepascal.org/index.php/topic,46185.msg328613.html#msg328613 ) the behaviour of untyped parameters is not necessarily understood and the documentation is rather vague about them with only a bit of information inside "Variable parameters" ( https://www.freepascal.org/docs-html/current/ref/refsu65.html#x177-19900014.4.2 ) and a reference to that from "Constant parameters".
I think the topic deserves it's own chapter especially as they can use the three parameter modifiers const, var and out and their behavior is different from usual parameters (e.g. the ability/need to pass PointerVar^ as can be seen with FillChar or Move).
Mantis conversion info:
- Mantis ID: 35895
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 1640 (#65ac552d)
- Target version: 3.2.0