Recent

Author Topic: Published sets in FPC are limited to 32 elements  (Read 2049 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 18911
  • Glad to be alive.
Re: Published sets in FPC are limited to 32 elements
« Reply #15 on: February 21, 2026, 11:24:14 am »
Is having a design time editor for 256 set elements really a useful way to handle such things?
Looks like the proverbial screen-drawing instead of programming.

What would make sense, though, is that the set can be stored in full in {$M+} state.
That is to me an unexpected surprise that that seems not possible.
« Last Edit: February 21, 2026, 11:27:31 am by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6381
  • Compiler Developer
Re: Published sets in FPC are limited to 32 elements
« Reply #16 on: February 23, 2026, 09:32:18 pm »
64 elements should be allowed nowadays. The real origin of the problem is that when you use RTTI to get the setter then the setter might be a bit funky if the backing type is wider than a register size as then you work on a record type. It's an ABI limitation.

FPC and Lazarus still support 32-bit applications as well and will continue to do so. So, no, this will not be changed.

 

TinyPortal © 2005-2018