$PACKRECORDS does not behave as documented
Original Reporter info from Mantis: tangentstorm
-
Reporter name: michal wallace
Original Reporter info from Mantis: tangentstorm
- Reporter name: michal wallace
Description:
I wrote a program to show the effects of different $PACKRECORDS settings on records and associated typed files:
https://github.com/tangentstorm/tangentlabs/blob/master/pascal/rpack2.pas
Then ran it with each possible option:
https://github.com/tangentstorm/tangentlabs/blob/master/pascal/rpack2.sh
Then produced a hexdump of each generated file:
https://github.com/tangentstorm/tangentlabs/blob/master/pascal/rpack2.log
The docs state that the default setting is {$PACKRECORDS 2}:
http://www.freepascal.org/docs-html/prog/progsu60.html
... But it's clear from the above output that this can't be the case, because the default setting (under headings PACKxx for no $PACKRECORDS directive and PACKD for $PACKRECORDS DEFAULT) does not produce the same hex dump as $PACKRECORDS 2.
I don't know whether this is a bug or just a mistake in the documentation.
Mantis conversion info:
- Mantis ID: 24418
- OS: kubuntu
- OS Build: 13
- Platform: x64
- Version: 2.6.2
- Fixed in version: 3.0.0
- Fixed in revision: 1070 (#1c95cc95)
- Monitored by: » tangentstorm (michal wallace)
- Target version: 2.6.4