Storage information docs are outdated
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
https://www.freepascal.org/docs-html/ref/refsu38.html#x90-1120006.6.6 is outdated.
This is wrong:
- "The default specifier can be specified for ordinal types and sets. It serves the same purpose as the stored specifier: properties that have as value their default value, will not be written to the stream by the streaming system."
- "The nodefault specifier (nodefault) must be used to indicate that a property has no default value. The effect is that the value of this property is always written to the stream when streaming the property.
- "The value 2147483648 cannot be used as a default value, as it is used internally to denote nodefault"
Correct is:
- The stored and (no)default modifiers are independent on each other.
- The property value is saved only if it is different from its default value (or if there is no default value) and the stored specifier is True.
- If the stored specifier is not specified, an implicit "stored True" is used.
- The value -2147483648 cannot be used as a default value, as it is used internally to denote nodefault.
Additional information:
Related bug reports: #31985, #33563, #33564
Mantis conversion info:
- Mantis ID: 33566
- Build: 38675
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 1476 (#1cde45ea)
- Target version: 3.2.0