Op 9-2-2025 om 14:39 schreef Bart via fpc-devel:
The Delphi compatible unit System.UITypes is getting out of sync with Lazarus.
The reason for this is twofold:
1. the faster release cycle of Lazarus
(a bit extreme at the moment, but hopefully that will improve in the future)
2. the fact that Lazarus supports more widgetsets, for which we also
need enumerations, and Delphi does not have these.
This can lead to errors as described in
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41300
While this can be worked around, my question (no offense intended) it
raises some questions in my head.
First:
Why the need for such a unit?
Primarily compatibility, but there are reasons why it is a good thing.
Two fold.
- Non LCL libraries (like e.g. FMX or a clone) might use them, since
that is why Delphi did it.
- Less specific for the enumerations, but having e.g. the Tcolor(rec)
related stuff in LCL unit was a pain, as e.g. FCL-image needed it for
non visual image manipulation
Second:
Given the fact that enumerations like TOpenOption etc. are related to
GUI applications, why does this unit "reside" in fpc and not in
Lazarus?
So, compatibility. The pain is now a bit harder since the unit pretty
much got filled up in a long release hiatus. But let's assume that that
is temporary.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel