Set sizes in Delphi mode undocumented
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
In one of the later versions (2.4, 2.6?) setsizes that truly map to Delphi sizes (growing with one byte at a time) were implemented. The documentation
doesn't seem to reflect that.
https://www.freepascal.org/docs-html/ref/refsu16.html#x40-580003.3.3
backlink forum where Thaddy remarked on that: http://forum.lazarus-ide.org/index.php/topic,31074.15.html
Steps to reproduce:
{$mode delphi}
type txxx = set of 0..247;
begin
writeln(sizeof(txxx));
end.
prints "31".
Mantis conversion info:
- Mantis ID: 33156
- Version: 3.0.4
- Fixed in version: 3.1.1
- Fixed in revision: 1463 (#34161a8d)
- Target version: 3.2.0